45#define STR_SIZE(x) (sizeof(x) -1)
84uint8_t
cmpBuffs( uint8_t *bufa,
size_t len_a, uint8_t *bufb,
size_t len_b );
uint8_t calculate_chksum(uint8_t *buffer, uint8_t range)
Calculate a n-byte message 2's complement checksum.
Definition utils.c:44
TickType_t getTickDifference(TickType_t current_time, TickType_t start_time)
Calculate the difference between 2 tick values.
Definition utils.c:32
uint8_t cmpBuffs(uint8_t *bufa, size_t len_a, uint8_t *bufb, size_t len_b)
Compare 2 buffers.
Definition utils.c:55
uint8_t isPowerOfTwo(uint8_t x)
Check is a number is a power of 2.
Definition utils.c:72