UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
Functions

FRAM Peripheral Driver. More...

Functions

bool FRAM_selfTest (void)
 
void FRAM_write (uint32_t address, uint8_t *data, uint32_t length)
 
void FRAM_read (uint32_t address, uint8_t *data, uint32_t length)
 

Detailed Description

FRAM Peripheral Driver.

Hardware FRAM Peripheral Driver.

Function Documentation

bool FRAM_selfTest ( void  )

Check FRAM Device returns correct Device ID, indicating likelihood of correct operation

Returns
bool True if Device ID is return correctly, False else.

Definition at line 17 of file fram.c.

void FRAM_write ( uint32_t  address,
uint8_t *  data,
uint32_t  length 
)

Writ data to FRAM, beginning at specified memory address.

uint32_t Memory address to begin writing data. uint8_t* Pointer to data buffer. uint32_t Length to write in bytes.

Definition at line 25 of file fram.c.

void FRAM_read ( uint32_t  address,
uint8_t *  data,
uint32_t  length 
)

Read data from FRAM, beginning at specified memory address.

uint32_t Memory address to begin reading data. uint8_t* Pointer to data buffer. uint32_t Length to read in bytes.

Definition at line 36 of file fram.c.