excelonlp 2.0.0.0
|
Functions | |
void | excelonlp_cfg_setup (excelonlp_cfg_t *cfg) |
Config Object Initialization function. | |
EXCELONLP_RETVAL | excelonlp_init (excelonlp_t *ctx, excelonlp_cfg_t *cfg) |
Initialization function. | |
void | excelonlp_generic_transfer (excelonlp_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | excelonlp_send_command (excelonlp_t *ctx, uint8_t opcode) |
Functions for send opcode command. | |
void | excelonlp_read_data (excelonlp_t *ctx, uint8_t opcode, uint8_t *out_buf, uint8_t n_data) |
Functions for read data. | |
void | excelonlp_write_memory_data (excelonlp_t *ctx, uint8_t opcode, uint32_t addr, uint8_t c_data) |
Functions for write data to memory. | |
uint8_t | excelonlp_read_memory_data (excelonlp_t *ctx, uint8_t opcode, uint32_t addr) |
Functions for read data form memory. | |
void excelonlp_cfg_setup | ( | excelonlp_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void excelonlp_generic_transfer | ( | excelonlp_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
EXCELONLP_RETVAL excelonlp_init | ( | excelonlp_t * | ctx, |
excelonlp_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 excelonlp_read_data | ( | excelonlp_t * | ctx, |
uint8_t | opcode, | ||
uint8_t * | out_buf, | ||
uint8_t | n_data ) |
Functions for read data.
ctx | Click object. |
opcode | Command to be sent |
out_buf | Buffer in which data will be storage |
n_data | Number of bytes to be read |
uint8_t excelonlp_read_memory_data | ( | excelonlp_t * | ctx, |
uint8_t | opcode, | ||
uint32_t | addr ) |
Functions for read data form memory.
ctx | Click object. |
opcode | Transfer block structure. |
addr | addres in memmory |
void excelonlp_send_command | ( | excelonlp_t * | ctx, |
uint8_t | opcode ) |
Functions for send opcode command.
ctx | Click object. |
opcode | command to be sent |
void excelonlp_write_memory_data | ( | excelonlp_t * | ctx, |
uint8_t | opcode, | ||
uint32_t | addr, | ||
uint8_t | c_data ) |
Functions for write data to memory.
ctx | Click object. |
opcode | Command to be sent |
addr | addres in memmory |
c_data | Data to be written |