device/resource/uart.h header reference

The source code of this header can be browsed online.

Members  

Types  

Functions  

Constant  

Macro  

Members detail  

#define DEV_STATIC_RES_UART(__baudrate, __data, __parity, __stop, __flow)  

This macro is declared in device/resource/uart.h source file, line 99.

This macro specifies an UART configuration resource entry in a static device resources table declaration.

See also DEV_RES_UART and DEV_DECLARE_STATIC.

#define __DEVICE_RESOURCE_UART_H__  

This macro is declared in device/resource/uart.h source file, line 22.

struct dev_uart_config_s  

This struct is declared in device/resource/uart.h source file, line 41.

This struct structure describes the configuration of a UART device.

FieldDescription
uint32_t baudrate:22;baud rate in bps.
uint32_t data_bits:5;data bits.
uint32_t stop_bits:2;stop bits.
uint32_t flow_ctrl:1;flow control.
enum dev_uart_parity_e parity:2;parity.

const char dev_uart_parity_e[]  

This variable is declared in ENUM_DESCRIPTOR function like macro expansion, line 1 in device/resource/uart.h source file, line 29.

Alternate declarations with same identifier: [1], [2].

enum dev_uart_parity_e  

This enum is declared in device/resource/uart.h source file, line 33.

UART parity.

Alternate declarations with same identifier: [1], [2].

IdentifierDescription
DEV_UART_PARITY_NONE
DEV_UART_PARITY_ODD
DEV_UART_PARITY_EVEN

error_t device_get_res_uart(const struct device_s *dev, struct dev_uart_config_s *cfg)  

This function is declared in device/resource/uart.h source file, line 81.

error_t device_res_add_uart(struct device_s *dev, const struct dev_uart_config_s *cfg)  

This function is declared in device/resource/uart.h source file, line 77.

This function appends a UART resource entry to the device tree.

This is available when CONFIG_DEVICE_RESOURCE_ALLOC is defined.

See also DEV_RES_UART.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc