CuVoodoo STM32F1 firmware template
Functions
flash_internal.h File Reference

library to read/write internal flash (API) More...

Go to the source code of this file.

Functions

bool flash_internal_read (uint32_t address, uint8_t *buffer, size_t size)
 read data from internal flash More...
 
bool flash_internal_write (uint32_t address, uint8_t *buffer, size_t size)
 write data to internal flash More...
 

Detailed Description

library to read/write internal flash (API)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2016-2017
Note
peripherals used: none

Definition in file flash_internal.h.

Function Documentation

◆ flash_internal_read()

bool flash_internal_read ( uint32_t  address,
uint8_t *  buffer,
size_t  size 
)

read data from internal flash

Parameters
[in]addressstart address of the data to read
[out]bufferwhere to store the read data
[in]sizehow much data to read, in bytes
Returns
if read succeeded

Definition at line 33 of file flash_internal.c.

◆ flash_internal_write()

bool flash_internal_write ( uint32_t  address,
uint8_t *  buffer,
size_t  size 
)

write data to internal flash

Parameters
[in]addressstart address where to write data to
[in]bufferdata to be written
[in]sizehow much data to write, in bytes
Returns
if write succeeded

Definition at line 58 of file flash_internal.c.