Functions
flash.c File Reference
#include <string.h>
#include <breezystm32.h>
#include "flash.h"
Include dependency graph for flash.c:

Go to the source code of this file.

Functions

static uint8_t compute_checksum (const void *addr, size_t len)
 
void initEEPROM (void)
 Initialize Flash. More...
 
bool readEEPROM (void *dest, size_t len)
 Read data from Flash. More...
 
bool writeEEPROM (const void *src, size_t len)
 Write data to Flash. More...
 

Function Documentation

static uint8_t compute_checksum ( const void *  addr,
size_t  len 
)
static

Definition at line 43 of file flash.c.

void initEEPROM ( void  )

Initialize Flash.

Definition at line 37 of file flash.c.

bool readEEPROM ( void *  dest,
size_t  len 
)

Read data from Flash.

Parameters
destThe memory address to copy the data to
lenThe number of bytes to copy
Returns
true if the read was successful, false otherwise

Definition at line 54 of file flash.c.

bool writeEEPROM ( const void *  src,
size_t  len 
)

Write data to Flash.

Parameters
srcThe memory address to copy data from
lenThe number of bytes to copy
Returns
true if the write was successful, false otherwise

Definition at line 60 of file flash.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:26