2018-04-05 08:47:17 +02:00
|
|
|
|
2018-04-02 23:27:38 +02:00
|
|
|
// program version - note: increment version after modifications to configData_t struct!!
|
2018-06-08 22:41:37 +02:00
|
|
|
#define PROGVERSION "1.3.8" // use max 10 chars here!
|
2018-03-30 20:51:49 +02:00
|
|
|
#define PROGNAME "PAXCNT"
|
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
//--- Declarations ---
|
2018-03-30 20:51:49 +02:00
|
|
|
|
2018-04-26 18:07:48 +02:00
|
|
|
enum led_states {
|
2018-04-20 10:27:13 +02:00
|
|
|
LED_OFF,
|
|
|
|
LED_ON
|
2018-04-19 15:17:23 +02:00
|
|
|
};
|
2018-03-30 20:51:49 +02:00
|
|
|
|
2018-04-28 12:13:00 +02:00
|
|
|
#if defined(CFG_eu868)
|
|
|
|
const char lora_datarate[] = {"1211100908077BFSNA"};
|
|
|
|
#elif defined(CFG_us915)
|
|
|
|
const char lora_datarate[] = {"100908078CNA121110090807"};
|
|
|
|
#endif
|
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
//--- Prototypes ---
|
2018-04-06 22:24:54 +02:00
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
// defined in main.cpp
|
2018-04-26 18:07:48 +02:00
|
|
|
void reset_counters(void);
|
|
|
|
void blink_LED(uint16_t set_color, uint16_t set_blinkduration);
|
|
|
|
void led_loop(void);
|
2018-04-06 21:34:25 +02:00
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
// defined in configmanager.cpp
|
|
|
|
void eraseConfig(void);
|
|
|
|
void saveConfig(void);
|
|
|
|
void loadConfig(void);
|
2018-03-30 20:51:49 +02:00
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
// defined in lorawan.cpp
|
|
|
|
void onEvent(ev_t ev);
|
|
|
|
void do_send(osjob_t* j);
|
|
|
|
void gen_lora_deveui(uint8_t * pdeveui);
|
|
|
|
void RevBytes(unsigned char* b, size_t c);
|
|
|
|
void get_hard_deveui(uint8_t *pdeveui);
|
2018-04-06 21:34:25 +02:00
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
// defined in wifisniffer.cpp
|
|
|
|
void wifi_sniffer_init(void);
|
|
|
|
void wifi_sniffer_set_channel(uint8_t channel);
|
|
|
|
void wifi_sniffer_packet_handler(void *buff, wifi_promiscuous_pkt_type_t type);
|
2018-03-30 20:51:49 +02:00
|
|
|
|
2018-04-19 15:17:23 +02:00
|
|
|
// defined in blescan.cpp
|
2018-05-20 13:50:00 +02:00
|
|
|
#ifdef BLECOUNTER
|
2018-06-08 22:41:37 +02:00
|
|
|
void start_BLEscan(void);
|
|
|
|
void stop_BLEscan(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//defined in gpsread.cpp
|
|
|
|
#ifdef HAS_GPS
|
2018-06-09 13:18:59 +02:00
|
|
|
void gps_read(void);
|
2018-06-08 22:41:37 +02:00
|
|
|
void gps_loop(void * pvParameters);
|
2018-05-20 13:50:00 +02:00
|
|
|
#endif
|