bluetooth.h 2.16 KB
Newer Older
1
2
#ifndef GENERATED_ASN1SCC_bluetooth_H
#define GENERATED_ASN1SCC_bluetooth_H
Delia Cellarier's avatar
Delia Cellarier committed
3
4
5
6
7
8
9
10
11
12
13
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif


typedef enum {
14
15
16
    __po_hi_c_d250K = 0,
    __po_hi_c_d1M = 1,
    __po_hi_c_d2M = 2
Delia Cellarier's avatar
Delia Cellarier committed
17
18
} __po_hi_c_Datarate_T;

Maxime Perrotin's avatar
Maxime Perrotin committed
19
20
21
22
// please use the following macros to avoid breaking code.
#define __po_hi_c_Datarate_T_d250K __po_hi_c_d250K
#define __po_hi_c_Datarate_T_d1M __po_hi_c_d1M
#define __po_hi_c_Datarate_T_d2M __po_hi_c_d2M
Delia Cellarier's avatar
Delia Cellarier committed
23
24
25

void __po_hi_c_Datarate_T_Initialize(__po_hi_c_Datarate_T* pVal);

26
27
28
29
#define ERR_DATARATE_T		1  /**/
flag __po_hi_c_Datarate_T_IsConstraintValid(const __po_hi_c_Datarate_T* pVal, int* pErrCode);
typedef struct {
    
Delia Cellarier's avatar
Delia Cellarier committed
30
    byte arr[5];
31
} __po_hi_c_Address_T;
Delia Cellarier's avatar
Delia Cellarier committed
32
33


34
void __po_hi_c_Address_T_Initialize(__po_hi_c_Address_T* pVal);
Maxime Perrotin's avatar
Maxime Perrotin committed
35
36
37

#define ERR_ADDRESS_T		8  /**/
flag __po_hi_c_Address_T_IsConstraintValid(const __po_hi_c_Address_T* pVal, int* pErrCode);
38
39
/*-- __po_hi_c_bluetooth_conf_t --------------------------------------------*/
typedef asn1SccUint __po_hi_c_bluetooth_conf_t_channel;
Delia Cellarier's avatar
Delia Cellarier committed
40
41
42
43

typedef struct {
    __po_hi_c_bluetooth_conf_t_channel channel;
    __po_hi_c_Datarate_T datarate;
44
45
    __po_hi_c_Address_T address;

Delia Cellarier's avatar
Delia Cellarier committed
46
47
    struct {
        unsigned int datarate:1;
48
        unsigned int address:1;
Delia Cellarier's avatar
Delia Cellarier committed
49
    } exist;
50

Delia Cellarier's avatar
Delia Cellarier committed
51
52
} __po_hi_c_bluetooth_conf_t;

53
void __po_hi_c_bluetooth_conf_t_channel_Initialize(__po_hi_c_bluetooth_conf_t_channel* pVal);
Delia Cellarier's avatar
Delia Cellarier committed
54
55
void __po_hi_c_bluetooth_conf_t_Initialize(__po_hi_c_bluetooth_conf_t* pVal);

Maxime Perrotin's avatar
Maxime Perrotin committed
56
57
58
59
#define ERR_BLUETOOTH_CONF_T		46  /**/
#define ERR_BLUETOOTH_CONF_T_CHANNEL		15  /**/
#define ERR_BLUETOOTH_CONF_T_DATARATE_2		29  /**/
#define ERR_BLUETOOTH_CONF_T_ADDRESS_2		41  /**/
60
flag __po_hi_c_bluetooth_conf_t_IsConstraintValid(const __po_hi_c_bluetooth_conf_t* pVal, int* pErrCode);
Delia Cellarier's avatar
Delia Cellarier committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

extern const __po_hi_c_bluetooth_conf_t crazyflie_default; 

/* ================= Encoding/Decoding function prototypes =================
 * These functions are placed at the end of the file to make sure all types
 * have been declared first, in case of parameterized ACN encodings
 * ========================================================================= */

 


#ifdef  __cplusplus
}

#endif

Maxime Perrotin's avatar
Maxime Perrotin committed
77
#endif