#include "board.h"
#include "eeprom_device.h"
Go to the source code of this file.
◆ EEPROM_MAX_DEVICE_CNT
| #define EEPROM_MAX_DEVICE_CNT 32 |
eeprom support max device count
◆ hpm_eeprom_deinit()
Deinitialize eeprom device.
- Parameters
-
| [in] | device | Pointer to eeprom device structure |
- Return values
-
◆ hpm_eeprom_find()
Find eeprom device by device name.
- Parameters
-
| [in] | device_name | Device name |
- Return values
-
| Pointer | to eeprom device structure |
◆ hpm_eeprom_init()
Initialize eeprom device.
- Parameters
-
| [in] | device | Pointer to eeprom device structure |
- Return values
-
| status_success | or status_fail if initialization fails |
◆ hpm_eeprom_read_block()
Read data from eeprom device.
- Parameters
-
| [in] | device | Pointer to eeprom device structure |
| [in] | data_addr | Data address to read from |
| [in] | len | Length of data to read |
| [in] | data | Pointer to buffer to store read data |
- Return values
-
| status_success | if without any error |
◆ hpm_eeprom_register()
Register eeprom device.
- Parameters
-
| [in] | device | Pointer to eeprom device structure |
| [in] | device_name | Device name |
- Return values
-
◆ hpm_eeprom_unregister()
| hpm_stat_t hpm_eeprom_unregister |
( |
char |
device_name[] | ) |
|
Unregister eeprom device.
- Parameters
-
| [in] | device_name | Device name |
- Return values
-
| status_success | or status_fail if unregister fails |
◆ hpm_eeprom_write_block()
Write data to eeprom device.
- Parameters
-
| [in] | device | Pointer to eeprom device structure |
| [in] | data_addr | Data address to write to |
| [in] | len | Length of data to write |
| [in] | data | Pointer to buffer containing data to write |
- Return values
-
| status_success | if without any error |