![]() |
Kinetis Bootloader
2.0.0
Common bootloader for Kinetis devices
|
Data Structures | |
| struct | otfad_context_info_t |
| Format of context info. More... | |
Enumerations | |
| enum | _hal_constants { kOtfadNumKeyWords = 4, kOtfadNumCtrWords = 2, kOtfadNumRgnWords = 2 } |
| Constants. More... | |
| enum | _otfad_modes { kOtfadMode_Normal = 0x00, kOtfadMode_SecurityViolation = 0x02, kOtfadMode_LogiallyDisabled = 0x03 } |
| Operational modes. More... | |
| enum | _otfad_enables { kOtfadDisable = 0x00, kOtfadEnable = 0x01 } |
| Enable flags. More... | |
Functions | |
| uint32_t | otfad_hal_get_mode (OTFAD_Type *baseAddr) |
| Get the current mode. More... | |
| void | otfad_hal_global_enable (OTFAD_Type *baseAddr) |
| Enable the module. More... | |
| bool | otfad_hal_is_enabled (OTFAD_Type *baseAddr) |
| Get enabled state. More... | |
| void | otfad_hal_restricted_register_access_enable (OTFAD_Type *baseAddr) |
| Enable restricted register status. More... | |
| bool | otfad_hal_is_register_access_restricted (OTFAD_Type *baseAddr) |
| Get restricted register access state. More... | |
| uint32_t | otfad_hal_get_hardware_revision_level (OTFAD_Type *baseAddr) |
| Get hardware revision level. More... | |
| uint32_t | otfad_hal_get_number_of_contexts (OTFAD_Type *baseAddr) |
| Get number of contexts. More... | |
| void | otfad_hal_set_context (OTFAD_Type *baseAddr, uint32_t contextNum, const otfad_context_info_t *contextInfo) |
| Set context info. More... | |
| struct otfad_context_info_t |
Format of context info.
| Data Fields | ||
|---|---|---|
| uint32_t | ctrInfo[kOtfadNumCtrWords] | Counter words. |
| uint32_t | keyInfo[kOtfadNumKeyWords] | Key words. |
| uint32_t | regionInfo[kOtfadNumRgnWords] | Region words. |
| enum _hal_constants |
| enum _otfad_enables |
| enum _otfad_modes |
| uint32_t otfad_hal_get_hardware_revision_level | ( | OTFAD_Type * | baseAddr | ) |
Get hardware revision level.
| baseAddr | Module base address |
| uint32_t otfad_hal_get_mode | ( | OTFAD_Type * | baseAddr | ) |
Get the current mode.
| baseAddr | Module base address |
| uint32_t otfad_hal_get_number_of_contexts | ( | OTFAD_Type * | baseAddr | ) |
Get number of contexts.
| baseAddr | Module base address |
| void otfad_hal_global_enable | ( | OTFAD_Type * | baseAddr | ) |
Enable the module.
Set the global enable flag in the control register to '1'. A power-on reset is required to clear this flag.
| baseAddr | Module base address |
| bool otfad_hal_is_enabled | ( | OTFAD_Type * | baseAddr | ) |
Get enabled state.
| baseAddr | Module base address |
| bool otfad_hal_is_register_access_restricted | ( | OTFAD_Type * | baseAddr | ) |
Get restricted register access state.
| baseAddr | Module base address |
| void otfad_hal_restricted_register_access_enable | ( | OTFAD_Type * | baseAddr | ) |
Enable restricted register status.
Set the restricted register access enable flag in the control register to '1'. A power-on reset is required to clear this flag.
| baseAddr | Module base address |
| void otfad_hal_set_context | ( | OTFAD_Type * | baseAddr, |
| uint32_t | contextNum, | ||
| const otfad_context_info_t * | contextInfo | ||
| ) |
Set context info.
| baseAddr | Module base address |
| contextNum | Context number |
| contextInfo | Ponter to context info struct |