nvsram3 2.0.0.0
|
This file contains API for nvSRAM 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | nvsram3_t |
nvSRAM 3 Click context object. More... | |
struct | nvsram3_cfg_t |
nvSRAM 3 Click configuration object. More... | |
struct | nvsram3_rtc_time_t |
struct | nvsram3_rtc_date_t |
struct | nvsram3_rtc_alarm_t |
Functions | |
void | nvsram3_cfg_setup (nvsram3_cfg_t *cfg) |
nvSRAM 3 configuration object setup function. | |
err_t | nvsram3_init (nvsram3_t *ctx, nvsram3_cfg_t *cfg) |
nvSRAM 3 initialization function. | |
err_t | nvsram3_default_cfg (nvsram3_t *ctx) |
nvSRAM 3 default configuration function. | |
err_t | nvsram3_generic_write (nvsram3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
nvSRAM 3 I2C writing function. | |
err_t | nvsram3_generic_read (nvsram3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
nvSRAM 3 I2C reading function. | |
err_t | nvsram3_send_cmd (nvsram3_t *ctx, uint8_t cmd) |
nvSRAM 3 send command function. | |
err_t | nvsram3_memory_write (nvsram3_t *ctx, uint32_t mem_addr, uint8_t *data_in, uint8_t n_bytes) |
nvSRAM 3 write memory function. | |
err_t | nvsram3_memory_read (nvsram3_t *ctx, uint32_t mem_addr, uint8_t *data_out, uint8_t n_bytes) |
nvSRAM 3 read memory function. | |
uint32_t | nvsram3_get_device_id (nvsram3_t *ctx) |
nvSRAM 3 get device ID function. | |
err_t | nvsram3_rtc_read_reg (nvsram3_t *ctx, uint8_t rtc_reg, uint8_t *data_out) |
nvSRAM 3 RTC read register function. | |
err_t | nvsram3_rtc_write_reg (nvsram3_t *ctx, uint8_t rtc_reg, uint8_t data_in) |
nvSRAM 3 RTC write register function. | |
void | nvsram3_get_rtc_time (nvsram3_t *ctx, nvsram3_rtc_time_t *rtc_time) |
nvSRAM 3 get RTC time function. | |
err_t | nvsram3_set_rtc_time (nvsram3_t *ctx, nvsram3_rtc_time_t rtc_time) |
nvSRAM 3 set RTC time function. | |
void | nvsram3_get_rtc_date (nvsram3_t *ctx, nvsram3_rtc_date_t *rtc_date) |
nvSRAM 3 get RTC date function. | |
err_t | nvsram3_set_rtc_date (nvsram3_t *ctx, nvsram3_rtc_date_t rtc_date) |
nvSRAM 3 set RTC date function. | |
void | nvsram3_get_rtc_alarm (nvsram3_t *ctx, nvsram3_rtc_alarm_t *rtc_alarm) |
nvSRAM 3 get RTC alarm function. | |
err_t | nvsram3_set_rtc_alarm (nvsram3_t *ctx, nvsram3_rtc_alarm_t rtc_alarm) |
nvSRAM 3 set RTC alarm function. | |
err_t | nvsram3_hardware_store (nvsram3_t *ctx, uint8_t state) |
nvSRAM 3 hardware store function. | |
err_t | nvsram3_hw_write_protection (nvsram3_t *ctx, uint8_t state) |
nvSRAM 3 write protection function. | |
This file contains API for nvSRAM 3 Click Driver.