ublast_read_bitbang_tdos() function
ublast_read_bitbang_tdos - read TDO of bitbang writes Reads back from USB Blaster TDO bits, triggered by a 'bitbang write', ie. one bit per received byte from USB interface, and store them in buffer, where : - first bit is stored in byte0, bit0 (LSB) - second bit is stored in byte0, bit 1 ... - eight bit is stored in byte0, bit 7 - ninth bit is stored in byte1, bit 0 - etc ... Returns ERROR_OK if OK, ERROR_xxx if a read error occurred
Syntax
static int ublast_read_bitbang_tdos(uint8_t *buf,
int nb_bits);
Arguments
buf
the buffer to store the bits
nb_bits
the number of bits