SEcube
SEcube Open Source Library - Device
se3_proto.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "se3c0.h"
10 #include "se3_common.h"
11 
13 enum {
17 };
18 
25 int32_t se3_proto_recv(uint8_t lun, const uint8_t* buf, uint32_t blk_addr, uint16_t blk_len);
26 
32 int32_t se3_proto_send(uint8_t lun, uint8_t* buf, uint32_t blk_addr, uint16_t blk_len);
This file contains defines and functions common for L0 and L1.
Report BUSY to the USB HAL.
Definition: se3_proto.h:16
L0 structures and functions.
Report FAIL to the USB HAL.
Definition: se3_proto.h:15
int32_t se3_proto_recv(uint8_t lun, const uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
USB data receive handler.
Definition: se3_proto.c:178
int32_t se3_proto_send(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
USB data send handler.
Definition: se3_proto.c:323
Report OK to the USB HAL.
Definition: se3_proto.h:14