36 #ifndef UART_EXCHANGE_H
37 #define UART_EXCHANGE_H
Various types used by the cascoda posix api.
void(* util_device_found)(struct ca_device_info *aDeviceInfo, void *aContext)
Function type for handling enumerated devices when finding them.
Definition: ca821x-types.h:241
ca_error(* ca821x_errorhandler)(ca_error error, struct ca821x_dev *pDeviceRef)
Error callback.
Definition: ca821x-types.h:61
The main ca821x-api include file.
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
CA-821x Device reference struct.
Definition: ca821x_api.h:123
ca_error uart_exchange_enumerate(util_device_found aCallback, void *aContext)
Function to enumerate all of the UART devices configured (in the CASCODA_UART environment variable),...
Definition: uart-exchange-windows.c:1164
void uart_exchange_deinit(struct ca821x_dev *pDeviceRef)
Deinitialise the uart exchange, so that it can be reinitialised by another process,...
Definition: uart-exchange-windows.c:1145
int uart_exchange_reset(unsigned long resettime, struct ca821x_dev *pDeviceRef)
Send a hard reset to the ca821x.
Definition: uart-exchange-windows.c:1207
uart_exchange_errors
Definition: uart-exchange.h:44
@ uart_exchange_err_generic
Definition: uart-exchange.h:47
@ uart_exchange_err_uart
Definition: uart-exchange.h:45
@ uart_exchange_err_ca821x
Definition: uart-exchange.h:46
ca_error uart_exchange_init(ca821x_errorhandler callback, const char *path, struct ca821x_dev *pDeviceRef)
Initialise the uart exchange, using the supplied errorhandling callback to report any errors back to ...
Definition: uart-exchange.c:606