Renesas FSL-T06 User Manual page 57

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.4.14
R01US0046ED Rev. 1.01
User Manual
Interface
fsl_status_t FSL_GetOPB( fsl_u08 *pOPB_pu08 )
Arguments
Type
fsl_u08
pOPB_pu08
Return types / values
Type
fsl_status_t
fsl_u08
pOPB_pu08
Pre-conditions
Library must be initialized (call function FSL_Init), copied (call function
FSL_CopySections) and active (call function FSL_FlashEnv_Activate).
Additionally the library must be informed about FBUS clock by using function
FSL_SetFrequency.
Post-conditions
None
Example
/* Read option byte */
fsl_status_t
status_enu;
fsl_u08
data_u08[4];
status_enu = FSL_GetOPB( &data_u08[0] );
/* Error treatment */
...
FSL_SetOPB
Description
Function writes new OPB settings (4 bytes) into the extra area.
Interface
fsl_status_t FSL_SetOPB( fsl_u08 *pOPB_pu08 )
Arguments
Type
fsl_u08
pOPB_pu08
Argument
Pointer to buffer of read option byte
Argument
Function return values:
Pointer to buffer filled with option byte
Argument
Pointer to source data of option bytes
Description
Description
FSL_OK
FSL_ERR_FLOW
FSL_ERR_PARAMETER
Description
User Interface (API)
57

Advertisement

Table of Contents
loading

Table of Contents