bpreader: remove incorrect structs
This commit is contained in:
parent
3c1c7aa469
commit
e6d064ce06
@ -13,9 +13,12 @@
|
||||
|
||||
#include "board/bpreader.h"
|
||||
|
||||
const uint8_t BPREADER_CMD_GO_NEXT[6] = { 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00 };
|
||||
|
||||
static HRESULT bp_handle_irp(struct irp *irp);
|
||||
static HRESULT bp_handle_irp_locked(struct irp *irp);
|
||||
static HRESULT crack_bpreader_request();
|
||||
static HRESULT build_bpreader_response();
|
||||
|
||||
static struct bpreader_config *config;
|
||||
static struct uart bp_uart;
|
||||
@ -191,7 +194,7 @@ static HRESULT bp_handle_irp_locked(struct irp *irp)
|
||||
0x00, 0x04, // ATQA
|
||||
0x08, //SAK
|
||||
0x04, // Unknown
|
||||
0x42, 0xF0, 0xE7, 0x05, // S/N
|
||||
0x42, 0xF0, 0x00, 0x00, // S/N
|
||||
0xB0, 0x00 }; // Footer*/
|
||||
memcpy_s(buff, sizeof(buff), buff2, sizeof(buff2));
|
||||
} else {
|
||||
@ -329,4 +332,8 @@ static HRESULT crack_bpreader_request() {
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT build_bpreader_response() {
|
||||
|
||||
}
|
@ -45,7 +45,6 @@ Commands
|
||||
| 0x14 | 0x20 | Unknown | a lot, see bpreader.c |
|
||||
| 0x18 | 0x0D | Unknown | 0x07, 0xDC, 0xF4, 0x3F, 0x11, 0x4D, 0x85, 0x61, 0xF1, 0x26, 0x6A, 0x87 |
|
||||
*/
|
||||
//const uint8_t bpreader_CMD_GO_NEXT[6] = { 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00 };
|
||||
|
||||
struct bpreader_cmd_header {
|
||||
uint8_t padding0_00;
|
||||
@ -61,33 +60,3 @@ struct bpreader_cmd_footer {
|
||||
uint8_t checksum;
|
||||
uint8_t padding;
|
||||
};
|
||||
|
||||
struct bpreader_resp_02 {
|
||||
struct bpreader_cmd_header;
|
||||
uint8_t data;
|
||||
struct bpreader_cmd_footer;
|
||||
};
|
||||
|
||||
struct bpreader_resp_03 {
|
||||
struct bpreader_cmd_header;
|
||||
uint8_t data[2];
|
||||
struct bpreader_cmd_footer;
|
||||
};
|
||||
|
||||
struct bpreader_resp_04 {
|
||||
struct bpreader_cmd_header;
|
||||
uint8_t data[3];
|
||||
struct bpreader_cmd_footer;
|
||||
};
|
||||
|
||||
struct bpreader_resp_05 {
|
||||
struct bpreader_cmd_header;
|
||||
uint8_t data[4];
|
||||
struct bpreader_cmd_footer;
|
||||
};
|
||||
|
||||
struct bpreader_resp_0A {
|
||||
struct bpreader_cmd_header;
|
||||
uint8_t data[9];
|
||||
struct bpreader_cmd_footer;
|
||||
};
|
Loading…
Reference in New Issue
Block a user