CC27xxDriverLibrary

Functions that access the ITM debug interface. More...

Collaboration diagram for ITM Functions:

Macros

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)
 
#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)
 
#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)
 

Functions

__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
 ITM Send Character. More...
 
__STATIC_INLINE int32_t ITM_ReceiveChar (void)
 ITM Receive Character. More...
 
__STATIC_INLINE int32_t ITM_CheckChar (void)
 ITM Check Character. More...
 

Variables

volatile int32_t ITM_RxBuffer
 
volatile int32_t ITM_RxBuffer
 
volatile int32_t ITM_RxBuffer
 

Detailed Description

Functions that access the ITM debug interface.

Macro Definition Documentation

§ ITM_RXBUFFER_EMPTY [1/3]

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)

Value identifying ITM_RxBuffer is ready for next character.

Referenced by ITM_CheckChar(), and ITM_ReceiveChar().

§ ITM_RXBUFFER_EMPTY [2/3]

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)

Value identifying ITM_RxBuffer is ready for next character.

§ ITM_RXBUFFER_EMPTY [3/3]

#define ITM_RXBUFFER_EMPTY   ((int32_t)0x5AA55AA5U)

Value identifying ITM_RxBuffer is ready for next character.

Function Documentation

§ ITM_SendChar()

__STATIC_INLINE uint32_t ITM_SendChar ( uint32_t  ch)

ITM Send Character.

Transmits a character via the ITM channel 0, and

  • Just returns when no debugger is connected that has booked the output.
  • Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
    Parameters
    [in]chCharacter to transmit.
    Returns
    Character to transmit.

References __NOP, ITM, and ITM_TCR_ITMENA_Msk.

§ ITM_ReceiveChar()

__STATIC_INLINE int32_t ITM_ReceiveChar ( void  )

ITM Receive Character.

Inputs a character via the external variable ITM_RxBuffer.

Returns
Received character.
-1 No character pending.

References ITM_RxBuffer, and ITM_RXBUFFER_EMPTY.

§ ITM_CheckChar()

__STATIC_INLINE int32_t ITM_CheckChar ( void  )

ITM Check Character.

Checks whether a character is pending for reading in the variable ITM_RxBuffer.

Returns
0 No character available.
1 Character available.

References ITM_RXBUFFER_EMPTY.

Variable Documentation

§ ITM_RxBuffer [1/3]

volatile int32_t ITM_RxBuffer

External variable to receive characters.

Referenced by DIB_GetAuthStatus(), and ITM_ReceiveChar().

§ ITM_RxBuffer [2/3]

volatile int32_t ITM_RxBuffer

External variable to receive characters.

§ ITM_RxBuffer [3/3]

volatile int32_t ITM_RxBuffer

External variable to receive characters.