All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexflash.h File Reference

Store user parameters in Flash macros and prototypes. More...

#include "stm32f10x_flash.h"

Go to the source code of this file.

Data Structures

struct  _user_param
 

Macros

#define FLASH_SUCCESS   1
 
#define FLASH_ERROR_WRITE   (-1)
 
#define FLASH_ERROR_WRITE_LIMIT   (-2)
 
#define FLASH_ERROR_ERASE   (-3)
 
#define FLASH_ERROR_ERASE_LIMIT   (-4)
 
#define FLASH_ERROR   (-5)
 
#define USER_PARAM_WORDS   8
 

Typedefs

typedef struct _user_param user_param
 

Functions

user_paramvexFlashUserParamRead (void)
 Read user parameters. More...
 
int16_t vexFlashUserParamWrite (user_param *u)
 write user parameters More...
 
int16_t vexFlashUserParamInit (void)
 Init user parameters. More...
 

Detailed Description

Store user parameters in Flash macros and prototypes.

Macro Definition Documentation

#define FLASH_SUCCESS   1
#define FLASH_ERROR_WRITE   (-1)
#define FLASH_ERROR_WRITE_LIMIT   (-2)
#define FLASH_ERROR_ERASE   (-3)
#define FLASH_ERROR_ERASE_LIMIT   (-4)
#define FLASH_ERROR   (-5)
#define USER_PARAM_WORDS   8

Typedef Documentation

typedef struct _user_param user_param

Function Documentation

user_param* vexFlashUserParamRead ( void  )

Read user parameters.

Returns
A pointer to a user_param structure
int16_t vexFlashUserParamWrite ( user_param u)

write user parameters

Parameters
[in]uPointer to user_param structure
Returns
status or error code
int16_t vexFlashUserParamInit ( void  )

Init user parameters.