Embedded SDK
Embedded SDK
parser.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stddef.h> // size_t
4 #include <stdint.h> // uint*_t
5 #include <stdbool.h> // bool
6 
10 typedef struct {
17 } command_t;
18 
32 bool apdu_parser(command_t *cmd, uint8_t *buf, size_t buf_len);
bool apdu_parser(command_t *cmd, uint8_t *buf, size_t buf_len)
Definition: parser.c:25
uint8_t ins
Instruction class.
Definition: parser.h:12
uint8_t lc
Instruction parameter 2.
Definition: parser.h:15
uint8_t cla
Definition: parser.h:11
uint8_t p1
Instruction code.
Definition: parser.h:13
uint8_t p2
Instruction parameter 1.
Definition: parser.h:14
uint8_t * data
Length of command data.
Definition: parser.h:16
unsigned char uint8_t
Definition: usbd_conf.h:53