![]() |
LibDriver FM24CLXX
|
fm24clxx base driver modules More...
Data Structures | |
| struct | fm24clxx_handle_s |
| fm24clxx handle structure definition More... | |
| struct | fm24clxx_info_s |
| fm24clxx information structure definition More... | |
Typedefs | |
| typedef struct fm24clxx_handle_s | fm24clxx_handle_t |
| fm24clxx handle structure definition | |
| typedef struct fm24clxx_info_s | fm24clxx_info_t |
| fm24clxx information structure definition | |
Enumerations | |
| enum | fm24clxx_t { FM24CL04B = 512 , FM24CL16B = 2048 , FM24CL64B = 8192 } |
| fm24clxx type enumeration definition More... | |
| enum | fm24clxx_address_t { FM24CLXX_ADDRESS_A000 = 0 , FM24CLXX_ADDRESS_A001 = 1 , FM24CLXX_ADDRESS_A010 = 2 , FM24CLXX_ADDRESS_A011 = 3 , FM24CLXX_ADDRESS_A100 = 4 , FM24CLXX_ADDRESS_A101 = 5 , FM24CLXX_ADDRESS_A110 = 6 , FM24CLXX_ADDRESS_A111 = 7 } |
| fm24clxx address enumeration definition More... | |
Functions | |
| uint8_t | fm24clxx_info (fm24clxx_info_t *info) |
| get chip's information | |
| uint8_t | fm24clxx_init (fm24clxx_handle_t *handle) |
| initialize the chip | |
| uint8_t | fm24clxx_deinit (fm24clxx_handle_t *handle) |
| close the chip | |
| uint8_t | fm24clxx_set_type (fm24clxx_handle_t *handle, fm24clxx_t type) |
| set the chip type | |
| uint8_t | fm24clxx_get_type (fm24clxx_handle_t *handle, fm24clxx_t *type) |
| get the chip type | |
| uint8_t | fm24clxx_set_addr_pin (fm24clxx_handle_t *handle, fm24clxx_address_t addr_pin) |
| set the chip address pin | |
| uint8_t | fm24clxx_get_addr_pin (fm24clxx_handle_t *handle, fm24clxx_address_t *addr_pin) |
| get the chip address pin | |
| uint8_t | fm24clxx_read (fm24clxx_handle_t *handle, uint16_t address, uint8_t *buf, uint16_t len) |
| read bytes from the chip | |
| uint8_t | fm24clxx_write (fm24clxx_handle_t *handle, uint16_t address, uint8_t *buf, uint16_t len) |
| write bytes to the chip | |
fm24clxx base driver modules
| typedef struct fm24clxx_handle_s fm24clxx_handle_t |
fm24clxx handle structure definition
| typedef struct fm24clxx_info_s fm24clxx_info_t |
fm24clxx information structure definition
| enum fm24clxx_address_t |
fm24clxx address enumeration definition
Definition at line 72 of file driver_fm24clxx.h.
| enum fm24clxx_t |
fm24clxx type enumeration definition
| Enumerator | |
|---|---|
| FM24CL04B | FM24CL04B type |
| FM24CL16B | FM24CL16B type |
| FM24CL64B | FM24CL64B type |
Definition at line 62 of file driver_fm24clxx.h.
| uint8_t fm24clxx_deinit | ( | fm24clxx_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an fm24clxx handle structure |
Definition at line 135 of file driver_fm24clxx.c.
| uint8_t fm24clxx_get_addr_pin | ( | fm24clxx_handle_t * | handle, |
| fm24clxx_address_t * | addr_pin ) |
get the chip address pin
| [in] | *handle | pointer to an fm24clxx handle structure |
| [out] | *addr_pin | pointer to a chip address pin |
Definition at line 230 of file driver_fm24clxx.c.
| uint8_t fm24clxx_get_type | ( | fm24clxx_handle_t * | handle, |
| fm24clxx_t * | type ) |
get the chip type
| [in] | *handle | pointer to an fm24clxx handle structure |
| [out] | *type | pointer to a chip type buffer |
Definition at line 187 of file driver_fm24clxx.c.
| uint8_t fm24clxx_info | ( | fm24clxx_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an fm24clxx info structure |
Definition at line 457 of file driver_fm24clxx.c.
| uint8_t fm24clxx_init | ( | fm24clxx_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an fm24clxx handle structure |
Definition at line 61 of file driver_fm24clxx.c.
| uint8_t fm24clxx_read | ( | fm24clxx_handle_t * | handle, |
| uint16_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
read bytes from the chip
| [in] | *handle | pointer to an fm24clxx handle structure |
| [in] | address | register address |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 256 of file driver_fm24clxx.c.
| uint8_t fm24clxx_set_addr_pin | ( | fm24clxx_handle_t * | handle, |
| fm24clxx_address_t | addr_pin ) |
set the chip address pin
| [in] | *handle | pointer to an fm24clxx handle structure |
| [in] | addr_pin | chip address pin |
Definition at line 208 of file driver_fm24clxx.c.
| uint8_t fm24clxx_set_type | ( | fm24clxx_handle_t * | handle, |
| fm24clxx_t | type ) |
set the chip type
| [in] | *handle | pointer to an fm24clxx handle structure |
| [in] | type | chip type |
Definition at line 166 of file driver_fm24clxx.c.
| uint8_t fm24clxx_write | ( | fm24clxx_handle_t * | handle, |
| uint16_t | address, | ||
| uint8_t * | buf, | ||
| uint16_t | len ) |
write bytes to the chip
| [in] | *handle | pointer to an fm24clxx handle structure |
| [in] | address | register address |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 359 of file driver_fm24clxx.c.