53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
 | 
						|
// program version - note: increment version after modifications to configData_t struct!!
 | 
						|
#define PROGVERSION                     "1.3.8"    // use max 10 chars here!
 | 
						|
#define PROGNAME                        "PAXCNT"
 | 
						|
 | 
						|
//--- Declarations ---
 | 
						|
 | 
						|
enum led_states { 
 | 
						|
  LED_OFF,
 | 
						|
  LED_ON
 | 
						|
};
 | 
						|
 | 
						|
#if defined(CFG_eu868)
 | 
						|
  const char lora_datarate[] = {"1211100908077BFSNA"};
 | 
						|
#elif defined(CFG_us915)  
 | 
						|
  const char lora_datarate[] = {"100908078CNA121110090807"};
 | 
						|
#endif
 | 
						|
 | 
						|
//--- Prototypes ---
 | 
						|
 | 
						|
// defined in main.cpp
 | 
						|
void reset_counters(void);
 | 
						|
void blink_LED(uint16_t set_color, uint16_t set_blinkduration);
 | 
						|
void led_loop(void);
 | 
						|
 | 
						|
// defined in configmanager.cpp
 | 
						|
void eraseConfig(void);
 | 
						|
void saveConfig(void);
 | 
						|
void loadConfig(void);
 | 
						|
 | 
						|
// 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);
 | 
						|
 | 
						|
// 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);
 | 
						|
 | 
						|
// defined in blescan.cpp
 | 
						|
#ifdef BLECOUNTER
 | 
						|
  void start_BLEscan(void);
 | 
						|
  void stop_BLEscan(void);
 | 
						|
#endif
 | 
						|
 | 
						|
//defined in gpsread.cpp
 | 
						|
#ifdef HAS_GPS
 | 
						|
  void gps_read(void);
 | 
						|
  void gps_loop(void * pvParameters);
 | 
						|
#endif |