libnile
Loading...
Searching...
No Matches
eeprom.h File Reference
#include "../mcu.h"

Go to the source code of this file.

Macros

#define nile_mcu_native_eeprom_write_async_finish   nile_mcu_native_recv_cmd_response_none

Enumerations

enum  nile_mcu_eeprom_mode_t {
  NILE_MCU_EEPROM_MODE_NONE = 0x00 , NILE_MCU_EEPROM_MODE_M93LC06 = 0x01 , NILE_MCU_EEPROM_MODE_M93LC46 = 0x02 , NILE_MCU_EEPROM_MODE_M93LC56 = 0x03 ,
  NILE_MCU_EEPROM_MODE_M93LC66 = 0x04 , NILE_MCU_EEPROM_MODE_M93LC76 = 0x05 , NILE_MCU_EEPROM_MODE_M93LC86 = 0x06
}

Functions

static int16_t nile_mcu_native_eeprom_set_mode_sync (nile_mcu_eeprom_mode_t mode)
 Set EEPROM emulation mode.
static int16_t nile_mcu_native_eeprom_erase_sync (void)
static int16_t nile_mcu_native_eeprom_read_sync (void __far *buffer, uint16_t offset, uint16_t buflen)
static int16_t nile_mcu_native_eeprom_write_sync (const void __wf_cram *buffer, uint16_t buflen)
static int16_t nile_mcu_native_eeprom_write_async_start (const void __wf_cram *buffer, uint16_t buflen)
static int16_t nile_mcu_native_eeprom_get_mode_sync (void)
 Get EEPROM emulation mode.

Macro Definition Documentation

◆ nile_mcu_native_eeprom_write_async_finish

#define nile_mcu_native_eeprom_write_async_finish   nile_mcu_native_recv_cmd_response_none

Definition at line 75 of file eeprom.h.

Enumeration Type Documentation

◆ nile_mcu_eeprom_mode_t

Enumerator
NILE_MCU_EEPROM_MODE_NONE 
NILE_MCU_EEPROM_MODE_M93LC06 
NILE_MCU_EEPROM_MODE_M93LC46 
NILE_MCU_EEPROM_MODE_M93LC56 
NILE_MCU_EEPROM_MODE_M93LC66 
NILE_MCU_EEPROM_MODE_M93LC76 
NILE_MCU_EEPROM_MODE_M93LC86 

Definition at line 28 of file eeprom.h.

Function Documentation

◆ nile_mcu_native_eeprom_erase_sync()

int16_t nile_mcu_native_eeprom_erase_sync ( void )
inlinestatic

Definition at line 51 of file eeprom.h.

◆ nile_mcu_native_eeprom_get_mode_sync()

int16_t nile_mcu_native_eeprom_get_mode_sync ( void )
inlinestatic

Get EEPROM emulation mode.

Returns
int16_t Non-negative values as in nile_mcu_eeprom_mode_t, negative values on transfer error.

Definition at line 82 of file eeprom.h.

◆ nile_mcu_native_eeprom_read_sync()

int16_t nile_mcu_native_eeprom_read_sync ( void __far * buffer,
uint16_t offset,
uint16_t buflen )
inlinestatic

Definition at line 57 of file eeprom.h.

◆ nile_mcu_native_eeprom_set_mode_sync()

int16_t nile_mcu_native_eeprom_set_mode_sync ( nile_mcu_eeprom_mode_t mode)
inlinestatic

Set EEPROM emulation mode.

Returns
int16_t 1 on success, 0 on MCU error, negative values on transfer error.

Definition at line 43 of file eeprom.h.

◆ nile_mcu_native_eeprom_write_async_start()

int16_t nile_mcu_native_eeprom_write_async_start ( const void __wf_cram * buffer,
uint16_t buflen )
inlinestatic

Definition at line 70 of file eeprom.h.

◆ nile_mcu_native_eeprom_write_sync()

int16_t nile_mcu_native_eeprom_write_sync ( const void __wf_cram * buffer,
uint16_t buflen )
inlinestatic

Definition at line 63 of file eeprom.h.