sub_get_product_id

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_fifo_config( sub_handle hndl, int config )

 

Configure FIFO.  

Parameters

config - set of FIFO configuration flags listed below

FIFO_SELECT_SPI

Connect SPI module to FIFO

FIFO_SELECT_I2C

Connect I2C slave module to FIFO

FIFO_SELECT_UART

Connect UART to FIFO

FIFO_CLEAR

Clear IN and OUT FIFO buffers

FIFO_READ_FULL

Read only full 64 byte FIFO buffers

Return value

On success function returns 0. Otherwise error code.

Compatibility

FW version

FIFO_CLEAR - 0.1.3 or grater

FIFO_SELECT_UART - 0.2.0 or grater

Library version

0.1.12.10 or grater