43 #ifndef POSIX_CA821X_POSIX_INCLUDE_CA821X_POSIX_CA821X_POSIX_EVBME_H_
44 #define POSIX_CA821X_POSIX_INCLUDE_CA821X_POSIX_CA821X_POSIX_EVBME_H_
287 const char *aVersion2,
The main ca821x-api include file.
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
evbme_dfu_rebootmode
Reboot mode.
Definition: evbme_messages.h:113
evbme_attribute
EVBME attribute ids for use with EVBME_SET_REQUEST and EVBME_GET_REQUEST.
Definition: evbme_messages.h:73
ca_error EVBME_DFU_WRITE_request(uint32_t aStartAddr, size_t aWriteLen, void *aWriteData, struct ca821x_dev *pDeviceRef)
Send a DFU request for Write to a given device.
Definition: ca821x-posix-evbme.c:147
ca_error EVBME_DFU_BOOTMODE_request(enum evbme_dfu_rebootmode aBootMode, struct ca821x_dev *pDeviceRef)
Send a DFU request to set the default boot mode of the given device.
Definition: ca821x-posix-evbme.c:183
ca_error EVBME_HOST_DISCONNECTED_notify(struct ca821x_dev *pDeviceRef)
Send a notification to the given device to reset and release control of it.
Definition: ca821x-posix-evbme.c:110
ca_error EVBME_DFU_ERASE_request(uint32_t aStartAddr, uint32_t aEraseLen, struct ca821x_dev *pDeviceRef)
Send a DFU request for Erase to a given device.
Definition: ca821x-posix-evbme.c:133
ca_error EVBME_COMM_CHECK_request(uint8_t aHandle, uint8_t aDelay, uint8_t aIndCount, uint8_t aIndSize, uint8_t aPayloadLen, struct ca821x_dev *pDeviceRef)
Send an asynchronous EVBME COMM CHECK request to the given device.
Definition: ca821x-posix-evbme.c:74
struct EVBME_callbacks * EVBME_GetCallbackStruct(struct ca821x_dev *pDeviceRef)
Get the mutable callback structure for the given device.
Definition: ca821x-posix-evbme.c:67
ca_error EVBME_GET_request_sync(enum evbme_attribute aAttrId, size_t aMaxAttrLen, uint8_t *aAttrData, uint8_t *aAttrLen, struct ca821x_dev *pDeviceRef)
Send an EVBME GET request to get the value of an EVBME attribute.
Definition: ca821x-posix-evbme.c:226
ca_error EVBME_DFU_CHECK_request(uint32_t aStartAddr, uint32_t aCheckLen, uint32_t aChecksum, struct ca821x_dev *pDeviceRef)
Send a DFU request to verify a flash range of a given device.
Definition: ca821x-posix-evbme.c:165
int EVBME_CompareVersions(const char *aVersion1, const char *aVersion2, struct ca_version_number *aVersion1Number, struct ca_version_number *aVersion2Number)
Compares two input version strings and returns the result.
Definition: ca821x-posix-evbme.c:273
ca_error EVBME_DFU_REBOOT_request(enum evbme_dfu_rebootmode aRebootMode, struct ca821x_dev *pDeviceRef)
Send a DFU request for reboot to the given device.
Definition: ca821x-posix-evbme.c:120
ca_error EVBME_SET_request_sync(enum evbme_attribute aAttrId, size_t aAttrLen, uint8_t *aAttrData, struct ca821x_dev *pDeviceRef)
Send an EVBME SET request to set the value of an EVBME attribute.
Definition: ca821x-posix-evbme.c:196
ca_error EVBME_HOST_CONNECTED_notify(struct ca821x_dev *pDeviceRef)
Send a notification to the given device to reset and take control of it.
Definition: ca821x-posix-evbme.c:100
ca_error(* EVBME_Message_callback)(struct EVBME_Message *params, struct ca821x_dev *pDeviceRef)
Definition: ca821x-posix-evbme.h:54
ca_error EVBME_CheckVersion(const char *aMinVerString, struct ca821x_dev *pDeviceRef)
Check the EVBME version of the device and compare it to the SDK version of the application.
Definition: ca821x-posix-evbme.c:302
EVBME Message command in Cascoda TLV format.
Definition: evbme_messages.h:258
Definition: ca821x-posix-evbme.h:57
EVBME_Message_callback EVBME_MESSAGE_indication
Definition: ca821x-posix-evbme.h:58
EVBME_Message_callback EVBME_COMM_indication
Definition: ca821x-posix-evbme.h:59
EVBME_Message_callback EVBME_DFU_cmd
Definition: ca821x-posix-evbme.h:60
CA-821x Device reference struct.
Definition: ca821x_api.h:123
Definition: ca821x-posix-evbme.h:65
int minor_version
Definition: ca821x-posix-evbme.h:67
int major_version
Definition: ca821x-posix-evbme.h:66