Example #1
0
ssize_t adal_scan_read(adal_t * adal, void * buf, int chainAddress, size_t bitlength, unsigned long options, unsigned long * status)
{
    int rc=0;
    unsigned long noBytes = bitToByte(bitlength);
    lseek(adal->fd, chainAddress, SEEK_SET);
    rc = read(adal->fd, buf, noBytes);
    *status=0;
    return rc;
}
Example #2
0
bool Cuart::run(void)
{

    if (outputBuffer.size()) {
        Set_RS(true);
    }

    if (RS && CS)	{ Set_SD( (sendBit()==Bit_1) ? true:false);	}

    if (CD) { Set_RR(1); Set_CD(1); }
    bitToByte();

    return true;
}