fram 2.0.0.0
|
Functions | |
void | fram_cfg_setup (fram_cfg_t *cfg) |
Config Object Initialization function. | |
FRAM_RETVAL | fram_init (fram_t *ctx, fram_cfg_t *cfg) |
Initialization function. | |
void | fram_generic_transfer (fram_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | fram_init_f (fram_t *ctx) |
Fram click init function. | |
void | fram_write_enable (fram_t *ctx) |
Fram click Write Enable function. | |
void | fram_write_disable (fram_t *ctx) |
Fram click Write Disable function. | |
uint8_t | fram_read_status (fram_t *ctx) |
Fram click Read Status function. | |
void | fram_write_status (fram_t *ctx, uint8_t value) |
Fram click Write Status function. | |
void | fram_read (fram_t *ctx, uint16_t address, uint8_t *buffer, uint16_t count) |
Fram read function. | |
void | fram_write (fram_t *ctx, uint16_t address, uint8_t *buffer, uint16_t count) |
Fram write function. | |
void | fram_erase_all (fram_t *ctx) |
Fram erase all function. | |
void fram_cfg_setup | ( | fram_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void fram_erase_all | ( | fram_t * | ctx | ) |
Fram erase all function.
ctx | Click object. |
@description This function flushes whole data memory and resets status reg.
void fram_generic_transfer | ( | fram_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
FRAM_RETVAL fram_init | ( | fram_t * | ctx, |
fram_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 fram_init_f | ( | fram_t * | ctx | ) |
Fram click init function.
ctx | Click object. |
@description This function that initializes Fram click by setting Chip select.
void fram_read | ( | fram_t * | ctx, |
uint16_t | address, | ||
uint8_t * | buffer, | ||
uint16_t | count ) |
Fram read function.
ctx | Click object. |
address | Desired starting address (0x0000 to FRAM_MEM_SIZE). |
buffer | Pointer to read buffer. |
count | Number of bytes to be read. |
@description This function reads sequential memory locations to buffer.
uint8_t fram_read_status | ( | fram_t * | ctx | ) |
Fram click Read Status function.
ctx | Click object. |
@description This function returns content of FRAM status register.
void fram_write | ( | fram_t * | ctx, |
uint16_t | address, | ||
uint8_t * | buffer, | ||
uint16_t | count ) |
Fram write function.
ctx | Click object. |
address | Desired starting address (0x0000 to FRAM_MEM_SIZE). |
buffer | Pointer to read buffer. |
count | Number of bytes to be read. |
@description This function writes to sequential memory locations from buffer.
void fram_write_disable | ( | fram_t * | ctx | ) |
Fram click Write Disable function.
ctx | Click object. |
@description This function that sends write disable command to the chip.
void fram_write_enable | ( | fram_t * | ctx | ) |
Fram click Write Enable function.
ctx | Click object. |
@description This function that sends write enable command to the chip.
void fram_write_status | ( | fram_t * | ctx, |
uint8_t | value ) |
Fram click Write Status function.
ctx | Click object. |
@description This function writes in FRAM status register.