XenevaOS
Loading...
Searching...
No Matches
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
49
50void bt_h4_reset(BtH4* h);
51int 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);
53int bt_h4_wrap(uint8_t kind, const uint8_t* payload, uint16_t len, uint8_t* out, uint16_t cap);
54
55#endif
#define out(...)
Definition main.cpp:65
unsigned char uint8_t
Definition acefiex.h:161
unsigned short int uint16_t
Definition acefiex.h:162
void bt_h4_reset(BtH4 *h)
Definition h4.c:33
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
struct _bt_h4_ BtH4
int bt_h4_wrap(uint8_t kind, const uint8_t *payload, uint16_t len, uint8_t *out, uint16_t cap)
Definition h4.c:91
size_t len
Definition initial.c:23
int h
Definition layout.c:118
Definition h4.h:42
uint16_t need
Definition h4.h:44
uint16_t got
Definition h4.h:45
uint8_t buf[1024]
Definition h4.h:46
int in_hdr
Definition h4.h:47
uint8_t kind
Definition h4.h:43