38 #ifndef WDXS_DC_ENABLED 39 #define WDXS_DC_ENABLED TRUE 42 #ifndef WDXS_AU_ENABLED 43 #define WDXS_AU_ENABLED TRUE 46 #ifndef WDXS_OTA_ENABLED 47 #define WDXS_OTA_ENABLED TRUE 52 #define WDXS_STREAM_FILE_LEN 0xFFFFFFFF 58 #define WDXS_EVT_TX_PATH 0x01 59 #define WDXS_EVT_AU_SEC_COMPLETE 0x02 66 #define WDXS_TX_MASK_READY_BIT (1<<0) 67 #define WDXS_TX_MASK_DC_BIT (1<<1) 68 #define WDXS_TX_MASK_FTC_BIT (1<<2) 69 #define WDXS_TX_MASK_FTD_BIT (1<<3) 70 #define WDXS_TX_MASK_AU_BIT (1<<4) 77 #define WDXS_AU_STATE_UNAUTHORIZED 0x00 78 #define WDXS_AU_STATE_HASHING 0x01 79 #define WDXS_AU_STATE_WAIT_SEC 0x02 80 #define WDXS_AU_STATE_WAIT_REPLY 0x03 81 #define WDXS_AU_STATE_AUTHORIZED 0x04 uint8_t txPhy
transmitter PHY
uint8_t ftcCccIdx
file transfer control ccc index
uint8_t ftPrefXferType
Preferred transport type.
wdxsAuCb_t wdxsAuCb
WDXS AU control block.
uint8_t dmConnId_t
Connection identifier.
void wdxsFtcSend(dmConnId_t connId)
Send a file transfer control characteristic notification.
uint16_t supTimeout
supervision timeout
uint8_t txReadyMask
Bits indicate DC, FTC, FTD, and/or AU wish to transmit.
bool_t doReset
Reset device after disconnect.
uint8_t wdxsFtcWrite(dmConnId_t connId, uint16_t len, uint8_t *pValue)
Process a write to the file transfer control characteristic.
uint8_t authMode
current authentication mode
uint8_t authLevel
current authentication level
uint8_t wdxsFtdWrite(dmConnId_t connId, uint16_t len, uint8_t *pValue)
Process a write to the file transfer data characteristic.
uint8_t wdxsDcWrite(dmConnId_t connId, uint16_t len, uint8_t *pValue)
Process a write to the device configuration characteristic.
uint16_t connLatency
connection latency
uint32_t ftOffset
file data offset
uint8_t bool_t
Boolean data type.
wsfHandlerId_t handlerId
WSF handler ID.
uint8_t wdxsAuWrite(dmConnId_t connId, uint16_t len, uint8_t *pValue)
Process a write to the authentication characteristic.
uint8_t wdxsDcUpdatePhy(dmConnId_t connId, uint8_t status)
Send update message for PHY.
void wdxsAuSend(dmConnId_t connId)
Transmit to authentication characteristic.
uint32_t ftLen
remaining data length for current operation
#define WDX_AU_RAND_LEN
Authentication Random challenge length (bytes)
uint16_t connInterval
connection interval
wdxsCb_t wdxsCb
WDXS control block.
uint16_t ftHandle
file handle
void WdxsUpdateListing(void)
Create the file list.
uint8_t ftdCccIdx
file transfer data ccc index
Union of DM callback event data types.
uint8_t reqAuthLevel
requested authentication level
void wdxsDcSend(dmConnId_t connId)
Send device configuration notification.
WDXS event message union.
uint8_t dcCccIdx
device configuration ccc index
void wdxsDcPhyRegister(wdxsDcPhyWriteCback_t cback)
Register a PHY write callback for the device configuration characteristic.
uint8_t(* wdxsDcPhyWriteCback_t)(dmConnId_t connId, uint8_t op, uint8_t id, uint16_t len, uint8_t *pValue)
WDXS Device Configuration PHY Write Callback.
unsigned long uint32_t
Unsigned 32-bit value.
uint8_t wsfHandlerId_t
Event handler ID data type.
ATTS client characteristic configuration callback structure.
uint8_t ftInProgress
operation in progress
uint32_t ftTotalLen
file total length
wdxsDcCb_t wdxsDcCb
WDXS DC control block.
void wdxsFtdSend(dmConnId_t connId)
Send a file transfer data characteristic notification.
uint8_t wdxsDcUpdateConnParam(dmConnId_t connId, uint8_t status)
Send update message for connection parameters.
uint8_t auCccIdx
authentication ccc index
#define WDX_AU_HASH_LEN
Authentication Hash length (bytes)
unsigned short uint16_t
Unsigned 16-bit value.
#define ATT_DEFAULT_PAYLOAD_LEN
Default maximum payload length for most PDUs.
WDXS Authentication Control Block.
WDXS Device Configuration Control Block.
uint16_t auMsgLen
message length
uint8_t authState
authentication protocol state
uint16_t dcMsgLen
message length
WDXS profile control block.
uint8_t rxPhy
receiver PHY
Common message structure passed to event handler.
wdxsDcPhyWriteCback_t phyWriteCback
Device config PHY write callback.
unsigned char uint8_t
Unsigned 8-bit value.
uint16_t ftcMsgLen
message length
#define WDX_AU_KEY_LEN
Authentication Key length (bytes)