![]() |
LibDriver AT24CXX
2.0.0
AT24CXX full-featured driver
|
at24cxx handle structure definition More...
#include <driver_at24cxx.h>
Data Fields | |
uint8_t | iic_addr |
uint8_t(* | iic_init )(void) |
uint8_t(* | iic_deinit )(void) |
uint8_t(* | iic_read )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
uint8_t(* | iic_write )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
uint8_t(* | iic_read_address16 )(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len) |
uint8_t(* | iic_write_address16 )(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len) |
void(* | delay_ms )(uint32_t ms) |
void(* | debug_print )(const char *const fmt,...) |
uint32_t | id |
uint8_t | inited |
at24cxx handle structure definition
Definition at line 97 of file driver_at24cxx.h.
void(* debug_print) (const char *const fmt,...) |
point to a debug_print function address
Definition at line 107 of file driver_at24cxx.h.
void(* delay_ms) (uint32_t ms) |
point to a delay_ms function address
Definition at line 106 of file driver_at24cxx.h.
uint32_t id |
chip id
Definition at line 108 of file driver_at24cxx.h.
uint8_t iic_addr |
iic device address
Definition at line 99 of file driver_at24cxx.h.
uint8_t(* iic_deinit) (void) |
point to an iic_deinit function address
Definition at line 101 of file driver_at24cxx.h.
uint8_t(* iic_init) (void) |
point to an iic_init function address
Definition at line 100 of file driver_at24cxx.h.
uint8_t(* iic_read) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_read function address
Definition at line 102 of file driver_at24cxx.h.
uint8_t(* iic_read_address16) (uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len) |
point to an iic_read_address16 function address
Definition at line 104 of file driver_at24cxx.h.
uint8_t(* iic_write) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len) |
point to an iic_write function address
Definition at line 103 of file driver_at24cxx.h.
uint8_t(* iic_write_address16) (uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len) |
point to an iic_write_address16 function address
Definition at line 105 of file driver_at24cxx.h.
uint8_t inited |
inited flag
Definition at line 109 of file driver_at24cxx.h.