WXK
2024-09-18 05e2e954bd127de378a9d1dfbb0ed95d725aad63
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
/*
 * Copyright (c) 2019 Oticon A/S
 *
 * SPDX-License-Identifier: Apache-2.0
 */
 
#ifndef EDTT_DRIVER_H
#define EDTT_DRIVER_H
 
#include <stdlib.h>
#include <stdbool.h>
 
#define EDTTT_NONBLOCK 0
#define EDTTT_BLOCK 1
 
#ifdef __cplusplus
extern "C" {
#endif
 
/**
 * Generic EDTT interface
 */
bool edtt_start(void);
bool edtt_stop(void);
int edtt_read(uint8_t *ptr, size_t size, int flags);
int edtt_write(uint8_t *ptr, size_t size, int flags);
 
/**
 * Exclusive functions for the BabbleSim driver
 */
void enable_edtt_mode(void);
void set_edtt_autoshutdown(bool mode);
 
#ifdef __cplusplus
}
#endif
 
#endif /* EDTT_DRIVER_H */