MSP430 DriverLib for MSP430FR2xx_4xx Devices  2.91.13.01
icc

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...
 

Detailed Description

Function Documentation

§ ICC_disable()

void ICC_disable ( void  )

Disables ICC module.

This function disables ICC.

Returns
None

§ ICC_enable()

void ICC_enable ( void  )

Enables ICC module.

This function enables ICC.

Returns
None

§ ICC_getCurrentICM()

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.

Returns
Minimum ICC interrupt priority level that will be serviced. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns minimum interrupt level.

§ ICC_getICM0()

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.)

Returns
Interrupt level of ICM virtual stack position 0. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns interrupt level of ICM virtual stack position 0.

§ ICC_getICM1()

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.)

Returns
Interrupt level of ICM virtual stack position 1. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns interrupt level of ICM virtual stack position 1.

§ ICC_getICM2()

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.)

Returns
Interrupt level of ICM virtual stack position 2. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns interrupt level of ICM virtual stack position 2.

§ ICC_getICM3()

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.)

Returns
Interrupt level of ICM virtual stack position 3. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns interrupt level of ICM virtual stack position 3.

§ ICC_getInterruptLevel()

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.

Parameters
interruptSourceis a 32-bit unsigned integer in which bit position (31 to 0) determines which interrupt source to read level from. Valid values are:
  • ICC_ILSR_P4
  • ICC_ILSR_P3
  • ICC_ILSR_P2
  • ICC_ILSR_P1
  • ICC_ILSR_SAC3DAC_SAC1DAC
  • ICC_ILSR_SAC2DAC_SAC0DAC
  • ICC_ILSR_ECOMP1_ECOMP0
  • ICC_ILSR_ADC
  • ICC_ILSR_EUSCI_B1
  • ICC_ILSR_EUSCI_B0
  • ICC_ILSR_EUSCI_A1
  • ICC_ILSR_EUSCI_A0
  • ICC_ILSR_WDT_INT
  • ICC_ILSR_RTC_COUNTER
  • ICC_ILSR_TIMER3_B1
  • ICC_ILSR_TIMER3_B0
  • ICC_ILSR_TIMER2_B1
  • ICC_ILSR_TIMER2_B0
  • ICC_ILSR_TIMER1_B1
  • ICC_ILSR_TIMER1_B0
  • ICC_ILSR_TIMER0_B1
  • ICC_ILSR_TIMER0_B0
Returns
Interrupt level of a given maskable interrupt source. Return one of the following:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
    returns interrupt level of given interrupt source.

§ ICC_getMVSStackPointer()

uint8_t ICC_getMVSStackPointer ( void  )

Gets the ICC Mask Virtual Stack stack pointer.

Returns the stack pointer of the ICC Mask Virtual Stack.

Returns
0 if stack is empty, 1 if ICM0 occupied, 2 if ICM0/ICM1, 3 if ICM0/ICM1/ICM2, 4 if full. Return one of the following:
  • ICC_MVS_STACK_EMPTY
  • ICC_MVS_STACK_ICM0
  • ICC_MVS_STACK_ICM0_ICM1
  • ICC_MVS_STACK_ICM0_ICM1_ICM2
  • ICC_MVS_STACK_FULL
    Determines how full MVS stack is

§ ICC_isVirtualStackEmpty()

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.

Returns
1 if virtual stack is empty, 0 if not

§ ICC_isVirtualStackFull()

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.

Returns
1 if virtual stack is full, 0 if not

§ ICC_setInterruptLevel()

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.

Parameters
ILSRmaskis 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:
  • ICC_ILSR_P4
  • ICC_ILSR_P3
  • ICC_ILSR_P2
  • ICC_ILSR_P1
  • ICC_ILSR_SAC3DAC_SAC1DAC
  • ICC_ILSR_SAC2DAC_SAC0DAC
  • ICC_ILSR_ECOMP1_ECOMP0
  • ICC_ILSR_ADC
  • ICC_ILSR_EUSCI_B1
  • ICC_ILSR_EUSCI_B0
  • ICC_ILSR_EUSCI_A1
  • ICC_ILSR_EUSCI_A0
  • ICC_ILSR_WDT_INT
  • ICC_ILSR_RTC_COUNTER
  • ICC_ILSR_TIMER3_B1
  • ICC_ILSR_TIMER3_B0
  • ICC_ILSR_TIMER2_B1
  • ICC_ILSR_TIMER2_B0
  • ICC_ILSR_TIMER1_B1
  • ICC_ILSR_TIMER1_B0
  • ICC_ILSR_TIMER0_B1
  • ICC_ILSR_TIMER0_B0
interruptLeveldetermines what interrupt level to set to. Valid values are:
  • ICC_LEVEL_0
  • ICC_LEVEL_1
  • ICC_LEVEL_2
  • ICC_LEVEL_3
  • ICC_LEVEL_ERROR
Returns
None

Copyright 2020, Texas Instruments Incorporated