cebf746
Dependents: CEBF746_Master CEBF746_Slave_withTPM CEBF746_Master_New
Diff: lib_CEBF746.h
- Revision:
- 12:3f5b2a723813
- Parent:
- 11:900c14faf070
- Child:
- 13:0d15bf5eee8c
--- a/lib_CEBF746.h Wed Oct 19 08:12:49 2016 +0000 +++ b/lib_CEBF746.h Thu Oct 20 06:28:40 2016 +0000 @@ -47,6 +47,7 @@ typedef struct _spiDataStr{ uint16_t size; // buf + crc16 size uint8_t *buf; + uint16_t keycrc16; // crc16 of buf[] uint16_t crc16; // crc16 of buf[] } spiDataStr; @@ -54,6 +55,7 @@ void cebf746_use_init(void); int16_t cebf746_packet_write(CEBF716_FUNCTION cebf746_command, spiDataStr* sendPacketStruct); int16_t cebf746_packet_read(CEBF716_FUNCTION cebf746_command, spiDataStr* readPacketStruct); +void cebf746_set_packet(spiDataStr* setSpiDataStr, uint16_t size, uint8_t * buf); void _cebf746_print_packet(uint16_t size, uint8_t* buf, uint16_t crc16); void cebf746_print_packet(spiDataStr* in);