XBee Firmware Library  1.6.0
Typedefs | Enumerations | Functions
25xxxx.h File Reference

Typedefs

typedef enum eeprom_25xxx eeprom_25xxx_t
 

Enumerations

enum  eeprom_25xxx { EEPROM_SPI_0 = 0, EEPROM_SPI_1 = 1, EEPROM_SPI_2 = 2, EEPROM_SPI_3 = 3 }
 

Functions

ssize_t eeprom_spi_command (eeprom_25xxx_t eeprom, uint8_t *cmd, uint8_t len)
 Sends a generic command to the SPI memory. More...
 
ssize_t eeprom_spi_erase (eeprom_25xxx_t eeprom, uint32_t addr, size_t len)
 Erases an array of bytes in the EEPROM. Erase Page command is used. More...
 
ssize_t eeprom_spi_read (eeprom_25xxx_t eeprom, void *rxbuf, uint32_t addr, size_t len)
 Reads the specified number of bytes from the EEPROM. More...
 
ssize_t eeprom_spi_read_status (eeprom_25xxx_t eeprom)
 Reads the status register of the memory. More...
 
ssize_t eeprom_spi_write (eeprom_25xxx_t eeprom, uint8_t *data, uint32_t addr, size_t len)
 Writes an array of bytes in the EEPROM. More...
 
ssize_t eeprom_spi_write_enable (eeprom_25xxx_t eeprom)
 Sets the Write-Enable Latch in the memory. More...
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
EEPROM_SPI_0 
EEPROM_SPI_1 
EEPROM_SPI_2 
EEPROM_SPI_3