XenevaOS
Loading...
Searching...
No Matches
XenevaOS
KernelAA64
Bt
h4.h
Go to the documentation of this file.
1
30
#ifndef __BT_H4_H__
31
#define __BT_H4_H__
32
33
#include <stdint.h>
34
#include <stddef.h>
35
36
#define H4_CMD 0x01
37
#define H4_ACL 0x02
38
#define H4_SCO 0x03
39
#define H4_EVT 0x04
40
#define H4_ISO 0x05
41
42
typedef
struct
_bt_h4_
{
43
uint8_t
kind
;
44
uint16_t
need
;
45
uint16_t
got
;
46
uint8_t
buf
[1024];
47
int
in_hdr
;
48
}
BtH4
;
49
50
void
bt_h4_reset
(
BtH4
*
h
);
51
int
bt_h4_feed
(
BtH4
*
h
,
const
uint8_t
* bytes,
size_t
n,
uint8_t
* kind,
uint8_t
*
out
,
uint16_t
* outlen,
52
uint16_t
cap);
53
int
bt_h4_wrap
(
uint8_t
kind,
const
uint8_t
* payload,
uint16_t
len
,
uint8_t
*
out
,
uint16_t
cap);
54
55
#endif
out
#define out(...)
Definition
main.cpp:65
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
uint16_t
unsigned short int uint16_t
Definition
acefiex.h:162
bt_h4_reset
void bt_h4_reset(BtH4 *h)
Definition
h4.c:33
bt_h4_feed
int bt_h4_feed(BtH4 *h, const uint8_t *bytes, size_t n, uint8_t *kind, uint8_t *out, uint16_t *outlen, uint16_t cap)
Definition
h4.c:49
BtH4
struct _bt_h4_ BtH4
bt_h4_wrap
int bt_h4_wrap(uint8_t kind, const uint8_t *payload, uint16_t len, uint8_t *out, uint16_t cap)
Definition
h4.c:91
len
size_t len
Definition
initial.c:23
h
int h
Definition
layout.c:118
_bt_h4_
Definition
h4.h:42
_bt_h4_::need
uint16_t need
Definition
h4.h:44
_bt_h4_::got
uint16_t got
Definition
h4.h:45
_bt_h4_::buf
uint8_t buf[1024]
Definition
h4.h:46
_bt_h4_::in_hdr
int in_hdr
Definition
h4.h:47
_bt_h4_::kind
uint8_t kind
Definition
h4.h:43
Generated by
1.9.8