device/resource/uart.h header reference

The source code of this header can be browsed online.

Members [link] 

Types [link] 

Functions [link] 

Constant [link] 

Macro [link] 

Members detail [link] 

#define DEV_STATIC_RES_UART(__baudrate, __data, __parity, __stop, __flow) [link] 

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

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__ [link] 

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

struct dev_uart_config_s [link] 

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

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[] [link] 

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

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

enum dev_uart_parity_e [link] 

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

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) [link] 

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

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

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

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 Thu Aug 4 15:44:06 2022 using MkDoc