Interface Functions

UART Interface Functions

itfdata_status_t ADVTRACE_ITF_DATA_Init ( void * pObj , void ( * cb ) ( void * ) )

Initialize the advanced trace UART interface.

Initialize the advanced trace interface.

Parameters :
  • pObj – Pointer to the UART handle

  • cb – Pointer to the callback function

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors

itfdata_status_t ADVTRACE_ITF_DATA_DeInit ( void )

Deinitialize the advanced trace UART interface.

Deinitialize the advanced trace interface.

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully.

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors.

itfdata_status_t ADVTRACE_ITF_DATA_StartRx ( void ( * cb ) ( uint8_t * p_data , uint16_t size_byte , uint8_t error ) )

Start the UART receive process.

Start the receive process.

Parameters :

cb – Pointer to the UART RX handler function

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors

itfdata_status_t ADVTRACE_ITF_DATA_Transmit ( uint8_t * p_data , uint16_t size_byte )

Send a data buffer over the UART interface (using DMA).

Send a data buffer over the interface (using DMA).

Parameters :
  • p_data – Pointer to the buffer to send

  • size_byte – Number of bytes to transmit

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors

Template Interface Functions

itfdata_status_t ADVTRACE_ITF_DATA_Init ( void * pObj , void ( * cb ) ( void * ) )

Initialize the advanced trace interface.

Parameters :
  • pObj – Pointer to the peripheral interface handle

  • cb – Pointer to the callback function

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors

itfdata_status_t ADVTRACE_ITF_DATA_DeInit ( void )

Deinitialize the advanced trace interface.

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully.

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors.

itfdata_status_t ADVTRACE_ITF_DATA_StartRx ( void ( * cb ) ( uint8_t * p_data , uint16_t size_byte , uint8_t error ) )

Start the receive process.

Parameters :

cb – Pointer to RX handler function

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors

itfdata_status_t ADVTRACE_ITF_DATA_Transmit ( uint8_t * p_data , uint16_t size_byte )

Send a data buffer over the interface (using DMA).

Parameters :
  • p_data – Pointer to the buffer to send

  • size_byte – Number of bytes to transmit

Return values :
  • ADVTRACE_ITF_DATA_OK – Operation completed successfully

  • ADVTRACE_ITF_DATA_ERROR – Operation completed with errors