Functions | |
void | ICC_enable (void) |
Enables ICC module. More... | |
void | ICC_disable (void) |
Disables ICC module. More... | |
void | ICC_setInterruptLevel (uint32_t ILSRmask, uint8_t interruptLevel) |
Sets ICC interrupt level for selected source. More... | |
uint8_t | ICC_getInterruptLevel (uint32_t interruptSource) |
Gets ICC interrupt level for selected source. More... | |
bool | ICC_isVirtualStackEmpty (void) |
Returns true if virtual stack is empty, false if not. More... | |
bool | ICC_isVirtualStackFull (void) |
Returns true if virtual stack is full, false if not. More... | |
uint8_t | ICC_getCurrentICM (void) |
Gets the current interrupt compare mask. More... | |
uint8_t | ICC_getMVSStackPointer (void) |
Gets the ICC Mask Virtual Stack stack pointer. More... | |
uint8_t | ICC_getICM3 (void) |
Gets the interrupt level at Interrupt compare mask virtual stack position 3. More... | |
uint8_t | ICC_getICM2 (void) |
Gets the interrupt level at Interrupt compare mask virtual stack position 2. More... | |
uint8_t | ICC_getICM1 (void) |
Gets the interrupt level at Interrupt compare mask virtual stack position 1. More... | |
uint8_t | ICC_getICM0 (void) |
Gets the interrupt level at Interrupt compare mask virtual stack position 0. More... | |
void ICC_disable | ( | void | ) |
Disables ICC module.
This function disables ICC.
void ICC_enable | ( | void | ) |
Enables ICC module.
This function enables ICC.
uint8_t ICC_getCurrentICM | ( | void | ) |
Gets the current interrupt compare mask.
Returns a 2-bit value that specifies the minimum interrupt priority level that will be sent for service. If ICM[1:0] is less than the priority level (ILSRx[1:0]) of the new interrupt, the corresponding source is sent to the CPU. Note that the ICMC is the element stack that the stack pointer is pointing to.
uint8_t ICC_getICM0 | ( | void | ) |
Gets the interrupt level at Interrupt compare mask virtual stack position 0.
Returns interrupt level of ICM virtual stack position 0 as a ready-to-read 8-bit integer value (automatically adjusted from original bit position.)
uint8_t ICC_getICM1 | ( | void | ) |
Gets the interrupt level at Interrupt compare mask virtual stack position 1.
Returns interrupt level of ICM virtual stack position 1 as a ready-to-read 8-bit integer value (automatically adjusted from original bit position.)
uint8_t ICC_getICM2 | ( | void | ) |
Gets the interrupt level at Interrupt compare mask virtual stack position 2.
Returns interrupt level of ICM virtual stack position 2 as a ready-to-read 8-bit integer value (automatically adjusted from original bit position.)
uint8_t ICC_getICM3 | ( | void | ) |
Gets the interrupt level at Interrupt compare mask virtual stack position 3.
Returns interrupt level of ICM virtual stack position 3 as a ready-to-read 8-bit integer value (automatically adjusted from original bit position.)
uint8_t ICC_getInterruptLevel | ( | uint32_t | interruptSource | ) |
Gets ICC interrupt level for selected source.
This function gets ICC interrupt level given a maskable interrupt source.
interruptSource | is a 32-bit unsigned integer in which bit position (31 to 0) determines which interrupt source to read level from. Valid values are:
|
uint8_t ICC_getMVSStackPointer | ( | void | ) |
Gets the ICC Mask Virtual Stack stack pointer.
Returns the stack pointer of the ICC Mask Virtual Stack.
bool ICC_isVirtualStackEmpty | ( | void | ) |
Returns true if virtual stack is empty, false if not.
This function returns true(1) if virtual stack is empty, false(0) if not.
bool ICC_isVirtualStackFull | ( | void | ) |
Returns true if virtual stack is full, false if not.
This function returns true(1) if virtual stack is full, false(0) if not.
void ICC_setInterruptLevel | ( | uint32_t | ILSRmask, |
uint8_t | interruptLevel | ||
) |
Sets ICC interrupt level for selected source.
This function sets ICC interrupt level given a maskable interrupt source.
ILSRmask | is a 32-bit unsigned integer in which bit position (31 to 0) determines which interrupt source is set. Mask value is the logical OR of any of the following:
|
interruptLevel | determines what interrupt level to set to. Valid values are:
|