LoRaWAN end device MAC layer for SX1272 and SX1276. Supports LoRaWAN-1.0 and LoRaWAN-1.1
Dependents: LoRaWAN-SanJose_Bootcamp LoRaWAN-grove-cayenne LoRaWAN-classC-demo LoRaWAN-grove-cayenne ... more
utilities.h
00001 00002 long random_at_most(long max); 00003 void memcpyr( uint8_t *dst, const uint8_t *src, uint16_t size ); 00004 #ifdef ENABLE_VT100 00005 void print_buf(const uint8_t* const buf, uint8_t len, const char* txt, uint8_t row); 00006 #else 00007 void print_buf(const uint8_t* const buf, uint8_t len, const char* txt); 00008 #endif 00009 bool ValueInRange( int8_t value, int8_t min, int8_t max ); 00010 00011 #ifndef MIN 00012 #define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) 00013 #endif 00014 00015 #ifndef MAX 00016 #define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) 00017 #endif
Generated on Mon Jul 18 2022 19:16:49 by 1.7.2