forked from tsuyoshiohashi/Bidirectional_Single_ch_Pkt_Fwd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsonjob.h
executable file
·28 lines (24 loc) · 1.14 KB
/
jsonjob.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
/*
* jsonjob.h
*/
#ifndef _JSONJOB_H_
#define _JSONJOB_H_
#include <stdint.h>
#include <stdbool.h>
typedef struct {
uint32_t freq_hz; /*!> center frequency of TX */
uint8_t tx_mode; /*!> select on what event/time the TX is triggered */
uint32_t count_us; /*!> timestamp or delay in microseconds for TX trigger */
int8_t rf_power; /*!> TX power, in dBm */
uint8_t bandwidth; /*!> modulation bandwidth (LoRa only) */
uint32_t datarate; /*!> TX datarate (baudrate for FSK, SF for LoRa) */
uint8_t coderate; /*!> error-correcting code of the packet (LoRa only) */
bool invert_pol; /*!> invert signal polarity, for orthogonal downlinks (LoRa only) */
uint16_t preamble; /*!> set the preamble length, 0 for default */
bool no_crc; /*!> if true, do not send a CRC in the packet */
int size; /*!> payload size in bytes */
uint8_t payload[256]; /*!> buffer containing the payload */
} rf_txpkt_s;
// proto type declaration
void cut_rftxdata(uint8_t* );
#endif // _JSONJOB_H_