44#ifndef MCUXCLGLIKEY_H_
45#define MCUXCLGLIKEY_H_
47#include <mcuxClConfig.h>
80#define MCUXCLGLIKEY_CODEWORD_STEP1 ((uint32_t) 0xF0C10F3EU)
81#define MCUXCLGLIKEY_CODEWORD_STEP2 ((uint32_t) 0x0F1DF0E2U)
82#define MCUXCLGLIKEY_CODEWORD_STEP3 ((uint32_t) 0xF0B00F4FU)
83#define MCUXCLGLIKEY_CODEWORD_STEP4 ((uint32_t) 0x0F4EF0B1U)
84#define MCUXCLGLIKEY_CODEWORD_STEP5 ((uint32_t) 0xF0810F7EU)
85#define MCUXCLGLIKEY_CODEWORD_STEP6 ((uint32_t) 0x0F5DF0A2U)
86#define MCUXCLGLIKEY_CODEWORD_STEP7 ((uint32_t) 0xF0700F8FU)
87#define MCUXCLGLIKEY_CODEWORD_STEP_EN ((uint32_t) 0x0FFFF000U)
89#define MCUXCLGLIKEY_STATUS_OK 0x0FF22E03u
90#define MCUXCLGLIKEY_STATUS_NOT_LOCKED 0x0FF22E07u
91#define MCUXCLGLIKEY_STATUS_LOCKED 0x0FF22E0Bu
93#define MCUXCLGLIKEY_STATUS_VERSION_ERROR 0x0FF25334u
94#define MCUXCLGLIKEY_STATUS_LOCKED_ERROR 0x0FF25338u
97#define MCUXCLGLIKEY_FSM_WR_DIS 0x0Bu
98#define MCUXCLGLIKEY_FSM_INIT 0x16u
99#define MCUXCLGLIKEY_FSM_STEP1 0x2Cu
100#define MCUXCLGLIKEY_FSM_STEP2 0x58u
101#define MCUXCLGLIKEY_FSM_STEP3 0xB0u
102#define MCUXCLGLIKEY_FSM_STEP4 0x160u
103#define MCUXCLGLIKEY_FSM_LOCKED 0xC01u
104#define MCUXCLGLIKEY_FSM_WR_EN 0x1802u
105#define MCUXCLGLIKEY_FSM_SSR_RESET 0x1005u
124typedef uint32_t mcuxClGlikey_BaseAddress_t;
125typedef uint32_t mcuxClGlikey_Status_t;
126typedef uint32_t mcuxClGlikey_IntEnable_t;
127typedef uint32_t mcuxClGlikey_GlikeyStatus_t;
156 mcuxClGlikey_BaseAddress_t * base,
157 mcuxClGlikey_GlikeyStatus_t * result
175 mcuxClGlikey_BaseAddress_t * base
192 mcuxClGlikey_BaseAddress_t * base,
193 mcuxClGlikey_IntEnable_t value
209 mcuxClGlikey_BaseAddress_t * base,
210 mcuxClGlikey_IntEnable_t * value
224 mcuxClGlikey_BaseAddress_t * base
238 mcuxClGlikey_BaseAddress_t * base
252 mcuxClGlikey_BaseAddress_t * base
267 mcuxClGlikey_BaseAddress_t * base
283 mcuxClGlikey_BaseAddress_t * base,
308 mcuxClGlikey_BaseAddress_t * base,
343 mcuxClGlikey_BaseAddress_t * base,
364 mcuxClGlikey_BaseAddress_t * base
384 mcuxClGlikey_BaseAddress_t * base,
409 mcuxClGlikey_BaseAddress_t * base
Definition of function identifiers for the flow protection mechanism.
Provides the API for the CSSL flow protection mechanism.
mcuxClGlikey_Status_t mcuxClGlikey_ContinueEnable(mcuxClGlikey_BaseAddress_t *base, uint32_t codeword)
Continue Glikey enable.
mcuxClGlikey_Status_t mcuxClGlikey_GetIntEnable(mcuxClGlikey_BaseAddress_t *base, mcuxClGlikey_IntEnable_t *value)
Get interrupt enable flag of Glikey.
mcuxClGlikey_Status_t mcuxClGlikey_StartEnable(mcuxClGlikey_BaseAddress_t *base, uint32_t index)
Start Glikey enable.
mcuxClGlikey_Status_t mcuxClGlikey_SetIntStatus(mcuxClGlikey_BaseAddress_t *base)
Set the interrupt status flag of Glikey.
mcuxClGlikey_Status_t mcuxClGlikey_IsLocked(mcuxClGlikey_BaseAddress_t *base)
Check if Glikey is locked.
mcuxClGlikey_Status_t mcuxClGlikey_ResetIndex(mcuxClGlikey_BaseAddress_t *base, uint32_t index)
Reset Glikey index.
mcuxClGlikey_Status_t mcuxClGlikey_IsIndexLocked(mcuxClGlikey_BaseAddress_t *base, uint32_t index)
Check if Glikey index is locked.
mcuxClGlikey_Status_t mcuxClGlikey_Lock(mcuxClGlikey_BaseAddress_t *base)
Lock Glikey SFR interface.
mcuxClGlikey_Status_t mcuxClGlikey_GetStatus(mcuxClGlikey_BaseAddress_t *base, mcuxClGlikey_GlikeyStatus_t *result)
Retrieves the current status of Glikey.
mcuxClGlikey_Status_t mcuxClGlikey_LockIndex(mcuxClGlikey_BaseAddress_t *base)
Lock Glikey index.
mcuxClGlikey_Status_t mcuxClGlikey_SyncReset(mcuxClGlikey_BaseAddress_t *base)
Perform a synchronous reset of Glikey.
mcuxClGlikey_Status_t mcuxClGlikey_SetIntEnable(mcuxClGlikey_BaseAddress_t *base, mcuxClGlikey_IntEnable_t value)
Set interrupt enable flag of Glikey.
mcuxClGlikey_Status_t mcuxClGlikey_EndOperation(mcuxClGlikey_BaseAddress_t *base)
End Glikey operation TODO: if we are in locked state we cannot exit(move to init) as curent index is ...
mcuxClGlikey_Status_t mcuxClGlikey_ClearIntStatus(mcuxClGlikey_BaseAddress_t *base)
Clear the interrupt status flag of Glikey.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:186
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:158