Nexus Embedded Platform 1.0.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
nx_uart_ops_t Struct Reference

Shared read-only methods using one provider state. More...

#include <uart.h>

Data Fields

nx_result_t(* submit )(void *context, nx_uart_tx_request_t *request)
nx_result_t(* start_admitted )(void *context, nx_uart_tx_request_t *request)
nx_result_t(* cancel )(void *context, nx_uart_tx_request_t *request)
void(* service )(void *context)
nx_result_t(* read_events )(void *context, nx_uart_rx_event_t *events, size_t capacity, size_t *count)
nx_result_t(* read_bytes )(void *context, uint8_t *bytes, size_t capacity, size_t *count)
nx_result_t(* stop )(void *context)
nx_result_t(* attach_wake )(void *context, const nx_irq_wake_t *wake, uint8_t syscall_ceiling)
nx_result_t(* rx_start )(void *context, nx_stream_t *stream)
nx_result_t(* rx_stop )(void *context)

Detailed Description

Shared read-only methods using one provider state.

Note
Methods follow each public operation's ownership contract. Missing optional methods report UNSUPPORTED.

Definition at line 62 of file uart.h.

Field Documentation

◆ attach_wake

nx_result_t(* nx_uart_ops_t::attach_wake) (void *context, const nx_irq_wake_t *wake, uint8_t syscall_ceiling)

Definition at line 72 of file uart.h.

◆ cancel

nx_result_t(* nx_uart_ops_t::cancel) (void *context, nx_uart_tx_request_t *request)

Definition at line 65 of file uart.h.

◆ read_bytes

nx_result_t(* nx_uart_ops_t::read_bytes) (void *context, uint8_t *bytes, size_t capacity, size_t *count)

Definition at line 69 of file uart.h.

◆ read_events

nx_result_t(* nx_uart_ops_t::read_events) (void *context, nx_uart_rx_event_t *events, size_t capacity, size_t *count)

Definition at line 67 of file uart.h.

◆ rx_start

nx_result_t(* nx_uart_ops_t::rx_start) (void *context, nx_stream_t *stream)

Definition at line 74 of file uart.h.

◆ rx_stop

nx_result_t(* nx_uart_ops_t::rx_stop) (void *context)

Definition at line 75 of file uart.h.

◆ service

void(* nx_uart_ops_t::service) (void *context)

Definition at line 66 of file uart.h.

◆ start_admitted

nx_result_t(* nx_uart_ops_t::start_admitted) (void *context, nx_uart_tx_request_t *request)

Definition at line 64 of file uart.h.

◆ stop

nx_result_t(* nx_uart_ops_t::stop) (void *context)

Definition at line 71 of file uart.h.

◆ submit

nx_result_t(* nx_uart_ops_t::submit) (void *context, nx_uart_tx_request_t *request)

Definition at line 63 of file uart.h.


The documentation for this struct was generated from the following file: