Embedded SDK
Embedded SDK
lib_standard_app
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
{
11
uint8_t
cla
;
12
uint8_t
ins
;
13
uint8_t
p1
;
14
uint8_t
p2
;
15
uint8_t
lc
;
16
uint8_t
*
data
;
17
}
command_t
;
18
32
bool
apdu_parser
(
command_t
*cmd,
uint8_t
*buf,
size_t
buf_len);
apdu_parser
bool apdu_parser(command_t *cmd, uint8_t *buf, size_t buf_len)
Definition:
parser.c:25
command_t
Definition:
parser.h:10
command_t::ins
uint8_t ins
Instruction class.
Definition:
parser.h:12
command_t::lc
uint8_t lc
Instruction parameter 2.
Definition:
parser.h:15
command_t::cla
uint8_t cla
Definition:
parser.h:11
command_t::p1
uint8_t p1
Instruction code.
Definition:
parser.h:13
command_t::p2
uint8_t p2
Instruction parameter 1.
Definition:
parser.h:14
command_t::data
uint8_t * data
Length of command data.
Definition:
parser.h:16
uint8_t
unsigned char uint8_t
Definition:
usbd_conf.h:53
Generated by
1.9.1