XBee Firmware Library  1.6.0
Functions | Variables
25xxxx.c File Reference

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...
 

Variables

const uint8_t eeprom25_addrbytes [MAX_EEPROM_SPI_NUM]
 
const uint16_t eeprom25_pagesize [MAX_EEPROM_SPI_NUM]
 
const uint8_t eeprom25_ss_index [MAX_EEPROM_SPI_NUM]
 

Variable Documentation

const uint8_t eeprom25_addrbytes[MAX_EEPROM_SPI_NUM]
Initial value:
= {
EEPROM_25XXX_ADDRESS_BYTES_0,
EEPROM_25XXX_ADDRESS_BYTES_1,
EEPROM_25XXX_ADDRESS_BYTES_2,
EEPROM_25XXX_ADDRESS_BYTES_3
}
const uint16_t eeprom25_pagesize[MAX_EEPROM_SPI_NUM]
Initial value:
= {
EEPROM_25XXX_PAGE_SIZE_0,
EEPROM_25XXX_PAGE_SIZE_1,
EEPROM_25XXX_PAGE_SIZE_2,
EEPROM_25XXX_PAGE_SIZE_3
}
const uint8_t eeprom25_ss_index[MAX_EEPROM_SPI_NUM]
Initial value:
= {
EEPROM_25XXX_SPI_SS_0,
EEPROM_25XXX_SPI_SS_1,
EEPROM_25XXX_SPI_SS_2,
EEPROM_25XXX_SPI_SS_3
}