43 #ifndef KIT_PROTOCOL_H
44 #define KIT_PROTOCOL_H
59 #define KIT_TX_WRAP_SIZE (7)
62 #define KIT_MSG_SIZE (32)
63 #define KIT_RX_WRAP_SIZE (KIT_MSG_SIZE + 6)
87 #endif // KIT_PROTOCOL_H
Single aggregation point for all CryptoAuthLib header files.
ATCA_STATUS kit_send(ATCAIface iface, uint8_t *txdata, int txlength)
HAL implementation of kit protocol send. This function calls back to the physical protocol to send th...
Definition: kit_protocol.c:121
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.c:57
ATCA_STATUS
Definition: atca_status.h:55
ATCA_STATUS kit_sleep(ATCAIface iface)
Call the sleep for kit protocol.
Definition: kit_protocol.c:283
ATCA_STATUS kit_wrap_cmd(uint8_t *txdata, int txlen, char *pkitcmd, int *nkitcmd)
Wrap binary bytes in ascii kit protocol.
Definition: kit_protocol.c:326
ATCA_STATUS kit_init(ATCAIface iface)
HAL implementation of kit protocol init. This function calls back to the physical protocol to send th...
Definition: kit_protocol.c:62
ATCA_STATUS kit_receive(ATCAIface iface, uint8_t *rxdata, uint16_t *rxsize)
HAL implementation to receive bytes and unwrap from kit protocol. This function calls back to the phy...
Definition: kit_protocol.c:158
ATCA_STATUS kit_parse_rsp(char *pkitbuf, int nkitbuf, uint8_t *kitstatus, uint8_t *rxdata, int *datasize)
Parse the response ascii from the kit.
Definition: kit_protocol.c:373
ATCA_STATUS kit_idle(ATCAIface iface)
Call the idle for kit protocol.
Definition: kit_protocol.c:243
ATCA_STATUS kit_wake(ATCAIface iface)
Call the wake for kit protocol.
Definition: kit_protocol.c:203