Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
eeprom25AA256.c File Reference
+ Include dependency graph for eeprom25AA256.c:

Go to the source code of this file.

Enumerations

enum  Eeprom25AA256InstructionSet {
  EEPROM_READ = 0x3 , EEPROM_WRITE = 0x2 , EEPROM_WRDI = 0x4 , EEPROM_WREN = 0x6 ,
  EEPROM_RDSR = 0x5 , EEPROM_WRSR = 0x1
}
 Instruction set. More...
 

Functions

void eeprom25AA256_init (struct Eeprom25AA256 *eeprom, struct spi_periph *spi_p, uint8_t slave_idx)
 Init function.
 
void eeprom25AA256_read (struct Eeprom25AA256 *eeprom, uint16_t addr, uint16_t length)
 Read function.
 
void eeprom25AA256_event (struct Eeprom25AA256 *eeprom)
 Event function.
 

Enumeration Type Documentation

◆ Eeprom25AA256InstructionSet

Instruction set.

Enumerator
EEPROM_READ 
EEPROM_WRITE 
EEPROM_WRDI 
EEPROM_WREN 
EEPROM_RDSR 
EEPROM_WRSR 

Definition at line 35 of file eeprom25AA256.c.

Function Documentation

◆ eeprom25AA256_event()

void eeprom25AA256_event ( struct Eeprom25AA256 eeprom)

Event function.

Parameters
[in]eeprompointer to 25AA256 eeprom struture

Definition at line 89 of file eeprom25AA256.c.

References foo, SPITransDone, SPITransFailed, and SPITransSuccess.

Referenced by meteo_stick_event().

+ Here is the caller graph for this function:

◆ eeprom25AA256_init()

void eeprom25AA256_init ( struct Eeprom25AA256 eeprom,
struct spi_periph spi_p,
uint8_t  slave_idx 
)

Init function.

Parameters
[in]eeprompointer to 25AA256 eeprom struture
[in]spi_ppointer to spi device
[in]slave_idxSPI slive index

Definition at line 45 of file eeprom25AA256.c.

References foo, SPICphaEdge1, SPICpolIdleLow, SPIDiv128, SPIDss8bit, SPIMSBFirst, SPISelectUnselect, SPITransDone, and spi_periph::status.

Referenced by meteo_stick_init().

+ Here is the caller graph for this function:

◆ eeprom25AA256_read()

void eeprom25AA256_read ( struct Eeprom25AA256 eeprom,
uint16_t  addr,
uint16_t  length 
)

Read function.

Parameters
[in]eeprompointer to 25AA256 eeprom struture
[in]addr16-bit start read address
[in]lengthnumber of bytes to read

Definition at line 72 of file eeprom25AA256.c.

References E25_IN_BUFFER_LEN, E25_OUT_BUFFER_LEN, EEPROM_READ, foo, spi_submit(), and SPITransDone.

Referenced by meteo_stick_periodic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: