Fork of the official mbed C/C++ SDK provides the software platform and libraries to build your applications. The fork has the documentation converted to Doxygen format

Dependents:   NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more

Fork of mbed by mbed official

Embed: (wiki syntax)

« Back to documentation index

ITM Functions

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

Functions

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

Variables

volatile int32_t ITM_RxBuffer

Detailed Description

Functions that access the ITM debug interface.


Function Documentation

__STATIC_INLINE int32_t ITM_CheckChar ( void   )

ITM Check Character.

The function checks whether a character is pending for reading in the variable ITM_RxBuffer.

Returns:
0 No character available.
1 Character available.

Definition at line 1533 of file core_cm3.h.

__STATIC_INLINE int32_t ITM_ReceiveChar ( void   )

ITM Receive Character.

The function inputs a character via the external variable ITM_RxBuffer.

Returns:
Received character.
-1 No character pending.

Definition at line 1514 of file core_cm3.h.

__STATIC_INLINE uint32_t ITM_SendChar ( uint32_t  ch )

ITM Send Character.

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

Definition at line 1495 of file core_cm3.h.


Variable Documentation

volatile int32_t ITM_RxBuffer

External variable to receive characters.