36 #ifndef KERNEL_EXCHANGE_H
37 #define KERNEL_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_error kernel_exchange_init(ca821x_errorhandler callback, struct ca821x_dev *pDeviceRef)
Initialise the kernel exchange, using the supplied errorhandling callback to report any errors back t...
Definition: kernel-exchange.c:185
ca_error kernel_exchange_enumerate(util_device_found aCallback, void *aContext)
Function to enumerate all of the kernel devices configured (currently max single device per system),...
Definition: kernel-exchange.c:271
int kernel_exchange_reset(unsigned long resettime, struct ca821x_dev *pDeviceRef)
Send a hard reset to the ca8210.
Definition: kernel-exchange.c:265
void kernel_exchange_deinit(struct ca821x_dev *pDeviceRef)
Deinitialise the kernel exchange, so that it can be reinitialised by another process,...
Definition: kernel-exchange.c:241
CA-821x Device reference struct.
Definition: ca821x_api.h:123