llci2c
2.0.0.0
|
Functions | |
void | llci2c_cfg_setup (llci2c_cfg_t *cfg) |
Config Object Initialization function. More... | |
LLCI2C_RETVAL | llci2c_init (llci2c_t *ctx, llci2c_cfg_t *cfg) |
Initialization function. More... | |
void | llci2c_generic_write (llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | llci2c_generic_read (llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | llcspi_cfg_setup (llcspi_cfg_t *cfg) |
Config Object Initialization function. More... | |
LLCSPI_RETVAL | llcspi_init (llcspi_t *ctx, llcspi_cfg_t *cfg) |
Initialization function. More... | |
void | llcspi_generic_transfer (llcspi_t *ctx, spi_master_transfer_data_t *block) |
Generic transfer function. More... | |
void | spillc_set_cs_pin (llcspi_t *ctx, uint8_t state) |
Function for set CS pin state. More... | |
void | spillc_generic_write (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes) |
LLC SPI write. More... | |
void | spillc_generic_read (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes) |
LLC SPI read. More... | |
void llci2c_cfg_setup | ( | llci2c_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void llci2c_generic_read | ( | llci2c_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void llci2c_generic_write | ( | llci2c_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len | ||
) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
LLCI2C_RETVAL llci2c_init | ( | llci2c_t * | ctx, |
llci2c_cfg_t * | cfg | ||
) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void llcspi_cfg_setup | ( | llcspi_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void llcspi_generic_transfer | ( | llcspi_t * | ctx, |
spi_master_transfer_data_t * | block | ||
) |
Generic transfer function.
ctx | Click object. |
block | Transfer block structure. |
@description Generic SPI transfer, for sending and receiving packages
LLCSPI_RETVAL llcspi_init | ( | llcspi_t * | ctx, |
llcspi_cfg_t * | cfg | ||
) |
Initialization function.
llcspi | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void spillc_generic_read | ( | llcspi_t * | ctx, |
uint8_t * | p_buf, | ||
uint16_t | n_bytes | ||
) |
LLC SPI read.
ctx | Click object. |
p_buf | pointer to data buffer |
n_bytes | number of bytes for writing |
@description Function executes read sequence of n bytes.
void spillc_generic_write | ( | llcspi_t * | ctx, |
uint8_t * | p_buf, | ||
uint16_t | n_bytes | ||
) |
LLC SPI write.
ctx | Click object. |
p_buf | pointer to data buffer |
n_bytes | number of bytes for writing |
@description Function executes write sequence of n bytes.
void spillc_set_cs_pin | ( | llcspi_t * | ctx, |
uint8_t | state | ||
) |
Function for set CS pin state.
ctx | Click object. |
state | CS pin state |