knx
ETS configurable knx-stack
rf_physical_layer_cc1310.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef DeviceFamily_CC13X0
4
5
#include "
config.h
"
6
#ifdef USE_RF
7
8
#include <stdint.h>
9
10
#include "
rf_physical_layer.h
"
11
12
#define RX_PACKET_TIMEOUT 20
// Wait 20ms for packet reception to complete
13
14
// loop states
15
#define RX_START 0
16
#define RX_ACTIVE 1
17
#define RX_END 2
18
#define TX_START 3
19
#define TX_ACTIVE 4
20
#define TX_END 5
21
22
class
RfDataLinkLayer
;
23
24
class
RfPhysicalLayerCC1310
:
public
RfPhysicalLayer
25
{
26
public
:
27
RfPhysicalLayerCC1310
(
RfDataLinkLayer
& rfDataLinkLayer,
Platform
& platform);
28
29
bool
InitChip
()
override
;
30
void
stopChip
()
override
;
31
void
loop
()
override
;
32
33
void
setOutputPowerLevel
(int8_t dBm);
34
35
private
:
36
uint8_t _loopState = RX_START;
37
};
38
39
#endif
// USE_RF
40
41
#endif
// DeviceFamily_CC13X0
Platform
Definition:
platform.h:32
RfDataLinkLayer
Definition:
rf_data_link_layer.h:14
RfPhysicalLayerCC1310
Definition:
rf_physical_layer_cc1310.h:25
RfPhysicalLayerCC1310::RfPhysicalLayerCC1310
RfPhysicalLayerCC1310(RfDataLinkLayer &rfDataLinkLayer, Platform &platform)
Definition:
rf_physical_layer_cc1310.cpp:117
RfPhysicalLayerCC1310::setOutputPowerLevel
void setOutputPowerLevel(int8_t dBm)
Definition:
rf_physical_layer_cc1310.cpp:122
RfPhysicalLayerCC1310::stopChip
void stopChip() override
Definition:
rf_physical_layer_cc1310.cpp:199
RfPhysicalLayerCC1310::InitChip
bool InitChip() override
Definition:
rf_physical_layer_cc1310.cpp:168
RfPhysicalLayerCC1310::loop
void loop() override
Definition:
rf_physical_layer_cc1310.cpp:207
RfPhysicalLayer
Definition:
rf_physical_layer.h:16
config.h
rf_physical_layer.h
src
knx
rf_physical_layer_cc1310.h
Generated by
1.9.1