psp_uart_start


Use this function to start a UART port.

Note: You must call psp_uart_init() before this to initialize the module.

Format

t_psp_uart_ret psp_uart_start (
    const uint8_t         uid,
    const t_psp_uart_cb   cb,
    const uint32_t        cb_param )

Arguments

Parameter Description Type
uid The unit ID. uint8_t
cb The callback function. t_psp_uart_cb
cb_param The callback parameter. uint32_t

Return Values

Return value Description
PSP_UART_SUCCESS Successful execution.
PSP_UART_ERROR Operation failed.