|
int32_t | m24512_init (struct no_os_eeprom_desc **desc, const struct no_os_eeprom_init_param *param) |
| Initialize the M24512 EEPROM device.
|
|
int32_t | m24512_remove (struct no_os_eeprom_desc *desc) |
| Free resources allocated by M24512 device.
|
|
int32_t | m24512_read_data (struct no_os_eeprom_desc *desc, uint32_t address, uint8_t *data, uint16_t len) |
| Read multiple bytes from EEPROM.
|
|
int32_t | m24512_write_data (struct no_os_eeprom_desc *desc, uint32_t address, uint8_t *data, uint16_t len) |
| Write multiple bytes to EEPROM (handles page boundaries)
|
|
bool | m24512_is_ready (struct m24512_dev *dev) |
| Check if EEPROM is ready (write cycle completed)
|
|
int | m24512_wait_ready (struct m24512_dev *dev, uint32_t timeout_ms) |
| Wait for write cycle completion.
|
|
int | m24512_get_info (struct m24512_dev *dev, uint32_t *memory_size, uint16_t *page_size, uint16_t *num_pages) |
| Get device information.
|
|
Header file for M24512 EEPROM driver.
- Author
- rober.nosp@m.t.bu.nosp@m.dai@a.nosp@m.nalo.nosp@m.g.com
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.