device/resource/uart.h header reference
The source code of this header can be browsed online.
Members [link]
Types [link]
- struct dev_uart_config_s
- enum dev_uart_parity_e
Functions [link]
- error_t device_get_res_uart(const struct device_s *dev, struct dev_uart_config_s *cfg)
- error_t device_res_add_uart(struct device_s *dev, const struct dev_uart_config_s *cfg)
Constant [link]
- const char dev_uart_parity_e[]
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.
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].
Identifier | Description |
---|---|
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.