1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
45
46
47
48
49
50
51
52
53
54
55
56
62
63
64
65
66
69
70
71
76
77
78
83
84
85
90
91
92
96
97
98
99
100
101
102
103
104
105
106
/* ... */
/* ... */
#ifndef BTSTACK_CHIPSET_H
#define BTSTACK_CHIPSET_H
#include <stdint.h>
#include "btstack_util.h"
#if defined __cplusplus
extern "C" {
#endif
typedef enum {
BTSTACK_CHIPSET_DONE = 0,
BTSTACK_CHIPSET_VALID_COMMAND,
BTSTACK_CHIPSET_WARMSTART_REQUIRED,
BTSTACK_CHIPSET_NO_INIT_SCRIPT,
...} btstack_chipset_result_t;
typedef struct {
/* ... */
const char * name;
/* ... */
void (*init)(const void * transport_config);
/* ... */
btstack_chipset_result_t (*next_command)(uint8_t * hci_cmd_buffer);
/* ... */
void (*set_baudrate_command)(uint32_t baudrate, uint8_t *hci_cmd_buffer);
/* ... */
void (*set_bd_addr_command)(bd_addr_t addr, uint8_t *hci_cmd_buffer);
...} btstack_chipset_t;
#if defined __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif