usart_os_get_io

Retrieve I/O descriptor.

int32_t usart_os_get_io(
    struct usart_os_descriptor *const descr,
    struct io_descriptor ** io
)

This function retrieves the I/O descriptor of the given USART descriptor.

Parameters

descr

Type: struct usart_os_descriptor Struct *const

A USART descriptor which is used to communicate via USART

io

Type: struct io_descriptor Struct **

An I/O descriptor to retrieve

Returns

Type: int32_t

The status of I/O descriptor retrieving.

-1

Passed parameters were invalid or the interface is already deinitialized

0

The retrieving is completed successfully