Keil Logo

Introduction API Functions

The Real-Time Agent API (Application Program Interface) is defined in C:\KEIL\ARM\RT AGENT\TEMPLATE\RT_AGENT.H. It contains routines that initialize the Real-Time Agent and that send user-defined messages back to µVision. Some routines are reserved for future use.

The following API routines are available:

Real-Time Agent API

Routine Description
RTA_Init Initialise Real-Time Agent.
This routine must be called before any other RTA routine. Memory read and writes will executing will not be available until this function has been called on the target.
RTA_Msg Send a message to the host via Real-Time Agent.
This routine is reserved for future use.
RTA_TermIsKey Check is there is a character available in the terminal emulator buffer.
This routine is non-blocking.
RTA_TermGetChar Get a character from the RTA terminal (RTA Terminal Window).
This routine blocks until a character is available.
RTA_TermPutChar Write a character to the RTA terminal (RTA Terminal Window).
This routine blocks until buffer space is available if and only if 'Block on Write' is enabled in the Configuation Wizard, otherwise it discards the character.
RTA_printf Print a formatted string to the RTA terminal (RTA Terminal Window).
This routine's parameters are the same as those for printf(). I/O Retargeting must be enabled to use this macro.
RTA_scanf Scan a formatted string from the RTA terminal (RTA Terminal Window).
This routine's parameters are the same as those for scanf(). I/O Retargeting must be enabled to use this macro.

Real-Time Agent Extended API (for Polled Mode and ATMEL AT91SAM7Sx only)

Routine Description
RTA_tx_word_ext Transmits Real-Time Agent data.
Must be called periodically from an interrupt in Polled Mode, or in the system interrupt handler for the ATMEL AT91SAM7Sx (refer to Configuring the Real-Time Agent).
RTA_rx_word_ext Receives Real-Time Agent data.
Must be called periodically from an interrupt in Polled Mode, or in the system interrupt handler for the ATMEL AT91SAM7Sx (refer to Configuring the Real-Time Agent).

Real-Time Agent Extended API (for Polled Mode only)

Routine Description
RTA_irq_enable_ext This function must enable the periodic interrupt that calls RTA_tx_word_ext() and RTA_rx_word_ext().
Must be implemented in Polled Mode.
RTA_irq_disable_ext This function must disable the periodic interrupt that calls RTA_tx_word_ext() and RTA_rx_word_ext().
Must be implemented in Polled Mode.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.