3 #include "se3_common.h"
13 se3_char path[SE3_MAX_PATH];
14 uint8_t serialno[SE3_SN_SIZE];
15 uint8_t hello_msg[SE3_HELLO_SIZE];
38 #define SE3_NBLOCKS (SE3_COMM_N-1) // Number of blocks
40 #define SE3_TIMEOUT (1024*1024)
42 #define SE3_TIMEOUT (10000)
47 #define SE3_RES_SIZE_HEADER (32)
49 #define SE3_SIZE_PAYLOAD_MAX ((SE3_COMM_BLOCK * SE3_NBLOCKS) - SE3_REQ_SIZE_HEADER - (SE3_COMM_BLOCK * SE3_REQDATA_SIZE_HEADER))
53 uint16_t L0_TXRX(
se3_device* device, uint16_t req_cmd, uint16_t req_cmdflags, uint16_t req_len,
const uint8_t* req_data, uint16_t* resp_status, uint16_t* resp_len, uint8_t* resp_data);
55 uint16_t L0_echo(
se3_device* device,
const uint8_t* data_in, uint16_t data_in_len, uint8_t* data_out);
56 uint16_t L0_factoryinit(
se3_device* device,
const uint8_t* serialno);