fram3 2.0.0.0
|
Functions | |
void | fram3_cfg_setup (fram3_cfg_t *cfg) |
Config Object Initialization function. | |
FRAM3_RETVAL | fram3_init (fram3_t *ctx, fram3_cfg_t *cfg) |
Initialization function. | |
void | fram3_generic_write (fram3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | fram3_generic_read (fram3_t *ctx, uint8_t *tx_buf, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | fram3_read_free_access_memory (fram3_t *ctx, uint8_t start_addr, uint8_t *data_buf, uint8_t n_buf_size) |
Memory read function. | |
uint8_t | fram3_write_free_access_memory (fram3_t *ctx, uint8_t start_addr, uint8_t *data_buf, uint8_t n_buf_size) |
Memory write function. | |
void fram3_cfg_setup | ( | fram3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void fram3_generic_read | ( | fram3_t * | ctx, |
uint8_t * | tx_buf, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
tx_buf | Register buffer. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void fram3_generic_write | ( | fram3_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.
FRAM3_RETVAL fram3_init | ( | fram3_t * | ctx, |
fram3_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.
uint8_t fram3_read_free_access_memory | ( | fram3_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_buf, | ||
uint8_t | n_buf_size ) |
Memory read function.
ctx | Click object. |
start_addr | Address from where data will be read |
data_buf | OUTPUT buffer data |
n_buf_size | Number of bytes data |
uint8_t fram3_write_free_access_memory | ( | fram3_t * | ctx, |
uint8_t | start_addr, | ||
uint8_t * | data_buf, | ||
uint8_t | n_buf_size ) |
Memory write function.
ctx | Click object. |
start_addr | Address from where data will be written |
data_buf | OUTPUT buffer data |
n_buf_size | Number of bytes data |