Esempio n. 1
0
int Context::write_chunk_size()
{
    unsigned chunk = -1;
    if (ftdi_write_data_get_chunksize(d->ftdi, &chunk) < 0)
        return -1;

    return chunk;
}
Esempio n. 2
0
unsigned int Ft245sync::getWriteChunkSize()
{
    unsigned int value;
    if(ftdi_write_data_get_chunksize(ftdic, &value) != 0)
    {
        throw Exception("Wrong ftdi context. FTDI not initilized?");
    }
    return value;
}