llcspi 2.0.0.0
|
Functions | |
void | llcspi_cfg_setup (llcspi_cfg_t *cfg) |
Config Object Initialization function. | |
LLCSPI_RETVAL | llcspi_init (llcspi_t *ctx, llcspi_cfg_t *cfg) |
Initialization function. | |
void | llcspi_generic_transfer (llcspi_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | llcspi_set_cs_pin (llcspi_t *ctx, uint8_t state) |
Function for set CS pin state. | |
void | llcspi_generic_write (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes) |
LLC SPI write. | |
void | llcspi_generic_read (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes) |
LLC SPI read. | |
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_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 llcspi_generic_transfer | ( | llcspi_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
void llcspi_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.
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 llcspi_set_cs_pin | ( | llcspi_t * | ctx, |
uint8_t | state ) |
Function for set CS pin state.
ctx | Click object. |
state | CS pin state |