GlobLib
HAL and API libraries for MCUs and hardware.
|
Header file for flashWrite library. More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | flash_put(DATA, ADDRESS) |
Flash a given datatype to the output stream. | |
#define | flash_get(DATA, ADDRESS) |
Read a given datatype from the input stream. | |
#define | MAX_DEC 4 |
Maximum number of decimal places a float will contain. | |
Typedefs | |
typedef void(* | v_fp_u8_u16) (uint8_t, uint16_t) |
Function pointer typedef for void function with uint8_t parameter. | |
Functions | |
void | FLASHWRITE_setOutput (void(*out)(uint8_t, uint16_t)) |
Set the target output stream for flash_put functions. More... | |
void | FLASHWRITE_setInput (uint8_t(*in)(uint16_t)) |
Set the target input stream for flash_get functions. More... | |
v_fp_u8_u16 | FLASHWRITE_getOutput (void) |
Get the current target output stream. More... | |
u8_fp_u16 | FLASHWRITE_getInput (void) |
Get the current target input stream. More... | |
uint16_t | FLASHWRITE_write_u8 (uint8_t data, uint16_t address) |
Write a unsigned 8 bit integer to address given. More... | |
uint16_t | FLASHWRITE_read_u8 (uint8_t *data, uint16_t address) |
Read a unsigned 8 bit integer from address given. More... | |
uint16_t | FLASHWRITE_write_8 (int8_t data, uint16_t address) |
Write a signed 8 bit integer to address given. More... | |
uint16_t | FLASHWRITE_read_8 (int8_t *data, uint16_t address) |
Read a signed 8 bit integer from address given. More... | |
uint16_t | FLASHWRITE_write_c (char data, uint16_t address) |
Write a char to address given. More... | |
uint16_t | FLASHWRITE_read_c (char *data, uint16_t address) |
Read a char from address give. More... | |
uint16_t | FLASHWRITE_write_u16 (uint16_t data, uint16_t address) |
Write a unsigned 16 bit integer to address given. More... | |
uint16_t | FLASHWRITE_read_u16 (uint16_t *data, uint16_t address) |
Read a unsigned 16 bit integer from address give. More... | |
uint16_t | FLASHWRITE_write_16 (int16_t data, uint16_t address) |
Write a signed 16 bit integer to address give. More... | |
uint16_t | FLASHWRITE_read_16 (int16_t *data, uint16_t address) |
Read a signed 16 bit integer from address give. More... | |
uint16_t | FLASHWRITE_write_u32 (uint32_t data, uint16_t address) |
Write a unsigned 32 bit integer to address given. More... | |
uint16_t | FLASHWRITE_read_u32 (uint32_t *data, uint16_t address) |
Read a unsigned 32 bit integer from address given. More... | |
uint16_t | FLASHWRITE_write_32 (int32_t data, uint16_t address) |
Write a signed 32 bit integer to address given. More... | |
uint16_t | FLASHWRITE_read_32 (int32_t *data, uint16_t address) |
Read a signed 32 bit integer from address given. More... | |
uint16_t | FLASHWRITE_write_float (float data, uint16_t address) |
Write a float to address given. More... | |
uint16_t | FLASHWRITE_read_float (float *data, uint16_t address) |
Read a float from address given. More... | |
Header file for flashWrite library.
Definition in file flashWrite.h.