Interface Functions ¶
ITM Interface Functions ¶
-
void
interface_io_Init
(
void
*
pobj
)
¶
-
Initialize ITM interface.
- Parameters :
-
pobj – Reserved, pass NULL.
-
uint32_t
interface_io_Send
(
const
uint8_t
*
Ptr
,
uint16_t
Size
)
¶
-
Send a buffer over ITM stimulus port.
- Parameters :
-
Ptr – Pointer to data buffer.
Size – Number of bytes to transfer.
- Returns :
-
Bytes written.
USART Interface Functions ¶
-
static
hal_uart_handle_t
*
itf_huart
=
NULL
¶
-
void
interface_io_Init
(
void
*
pobj
)
-
Initialize UART interface.
Initialize ITM interface.
- Parameters :
-
pobj – Pointer to a configured UART HAL handle.
-
uint32_t
interface_io_Send
(
const
uint8_t
*
Ptr
,
uint16_t
Size
)
-
Send a buffer over UART (polling mode).
Send a buffer over ITM stimulus port.
- Parameters :
-
Ptr – Data buffer pointer.
Size – Number of bytes to transmit.
- Returns :
-
Bytes transmitted.
Template Interface Functions ¶
-
void
interface_io_Init
(
void
*
pobj
)
-
Initialize custom interface.
Initialize ITM interface.
- Parameters :
-
pObj – Pointer to user-defined context or peripheral handle.
-
uint32_t
interface_io_Send
(
const
uint8_t
*
Ptr
,
uint16_t
Size
)
-
Send data over custom interface.
Send a buffer over ITM stimulus port.
- Parameters :
-
Ptr – Data buffer pointer.
Size – Number of bytes to transmit.
- Returns :
-
Bytes transmitted (implement). Return 0 on failure.