Package com.loomcom.symon.devices

Examples of com.loomcom.symon.devices.Acia.rxWrite()


    @Test
    public void aciaShouldHaveTxEmptyAndRxFullStatusOffIfRxAndTxHaveData()
            throws Exception {
        Acia acia = new Acia6551(0x000);

        acia.rxWrite('a');
        acia.txWrite('b');

        assertEquals(0x08, acia.read(0x0001));
    }
   
View Full Code Here


            throws Exception {
       
        Acia acia = new Acia6551(0x0000);
       
        // overrun ACIA
        acia.rxWrite('a');
        acia.rxWrite('b');
       
        assertEquals(0x04, acia.read(0x0001) & 0x04);
       
        // read should reset
View Full Code Here

       
        Acia acia = new Acia6551(0x0000);
       
        // overrun ACIA
        acia.rxWrite('a');
        acia.rxWrite('b');
       
        assertEquals(0x04, acia.read(0x0001) & 0x04);
       
        // read should reset
        acia.rxRead();
View Full Code Here

    @Test
    public void readingBuffersShouldResetStatus()
            throws Exception {
        Acia acia = new Acia6551(0x0000);

        acia.rxWrite('a');
        acia.txWrite('b');


        assertEquals(0x08, acia.read(0x0001));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.