-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathllc.h
63 lines (50 loc) · 1.58 KB
/
llc.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/******************************************************************************
@file llc.h
@brief Logical Link Controller shared definitions
Group: WCS LPC
$Target Device: DEVICES $
******************************************************************************
$License: BSD3 2016 $
******************************************************************************
$Release Name: PACKAGE NAME $
$Release Date: PACKAGE RELEASE DATE $
*****************************************************************************/
#ifndef LLC_H
#define LLC_H
/******************************************************************************
Includes
*****************************************************************************/
#include <stdbool.h>
#include <stdint.h>
#include "api_mac.h"
#ifdef __cplusplus
extern "C"
{
#endif
/******************************************************************************
Structures - Building blocks for the LLC
*****************************************************************************/
/*! Network Information */
typedef struct
{
/* Address information */
ApiMac_deviceDescriptor_t devInfo;
/*! Channel - non FH */
uint8_t channel;
/*! true if network is frequency hopping */
bool fh;
} Llc_netInfo_t;
/* Structure to store a device list entry in NV */
typedef struct _llc_devicelistitem
{
/* Address information */
ApiMac_deviceDescriptor_t devInfo;
/* Device capability */
ApiMac_capabilityInfo_t capInfo;
/* RX frame counter */
uint32_t rxFrameCounter;
} Llc_deviceListItem_t;
#ifdef __cplusplus
}
#endif
#endif /* LLC_H */