1 #ifndef _TWR_SC16IS740_H
2 #define _TWR_SC16IS740_H
15 TWR_SC16IS740_FIFO_RX = 0x02,
16 TWR_SC16IS740_FIFO_TX = 0x04
24 TWR_SC16IS740_BAUDRATE_9600 = 88,
25 TWR_SC16IS740_BAUDRATE_19200 = 44,
26 TWR_SC16IS740_BAUDRATE_38400 = 22,
27 TWR_SC16IS740_BAUDRATE_57600 = 15,
28 TWR_SC16IS740_BAUDRATE_115200 = 7
twr_i2c_channel_t
I2C channels.
bool twr_sc16is740_reset_fifo(twr_sc16is740_t *self, twr_sc16is740_fifo_t fifo)
Reset FIFO.
twr_sc16is740_baudrate_t
Baudrates.
size_t twr_sc16is740_write(twr_sc16is740_t *self, uint8_t *buffer, size_t length)
Write.
size_t twr_sc16is740_read(twr_sc16is740_t *self, uint8_t *buffer, size_t length, twr_tick_t timeout)
Read.
bool twr_sc16is740_set_baudrate(twr_sc16is740_t *self, twr_sc16is740_baudrate_t baudrate)
Set baudrate.
bool twr_sc16is740_init(twr_sc16is740_t *self, twr_i2c_channel_t i2c_channel, uint8_t i2c_address)
SC16IS740 instance.
twr_sc16is740_fifo_t
Fifo type.
bool twr_sc16is740_available(twr_sc16is740_t *self, size_t *available)
Get RX FIXO available data.
bool twr_sc16is740_get_spaces_available(twr_sc16is740_t *self, size_t *spaces_available)
Get TX FIXO space available.
uint64_t twr_tick_t
Timestamp data type.