Airoha M0 BLE API
1.0.5.4
hci_packet.h
1
/******************************************************************************
2
Copyright (c) Airoha 2016 - All rights reserved
3
4
FILE NAME
5
hci_packet.h
6
DESCRIPTION
7
NOTES
8
********************************************************************************/
9
#ifndef __HCI_PACKET_HH
10
#define __HCI_PACKET_HH
11
#include <stdint.h>
12
13
typedef
struct
14
{
15
uint16_t op;
16
uint8_t len;
17
uint8_t dat[1];
18
}__attribute__((packed))hci_cmd_packet;
19
20
21
typedef
struct
22
{
23
uint16_t handle;
24
uint16_t len;
25
uint8_t dat[1];
26
}__attribute__((packed))hci_dat_packet;
27
28
typedef
struct
29
{
30
uint8_t evt;
31
uint8_t len;
32
uint8_t dat[1];
33
}__attribute__((packed))hci_evt_packet;
34
35
typedef
struct
hci_packet_
36
{
37
uint8_t packet_type;
38
union
{
39
hci_cmd_packet cmd;
40
hci_evt_packet evt;
41
hci_dat_packet dat;
42
}pkt;
43
}hci_packet;
44
#endif
source
hci_packet.h
Generated by
1.8.13