#ifndef __UTILS_H #define __UTILS_H #ifdef __cplusplus extern "C" { #endif #ifdef __UTILS_H_GLOBAL #define __UTILS_H_EXTERN #else #define __UTILS_H_EXTERN extern #endif /************************************************************************************************ * Version * ************************************************************************************************/ /************************************************************************************************ * How to use * ************************************************************************************************/ /************************************************************************************************ * Enable config * ************************************************************************************************/ /************************************************************************************************ * Includes * ************************************************************************************************/ #include "stdint.h" /************************************************************************************************ * Defines * ************************************************************************************************/ #define ARR_SIZE(a) sizeof(a) / sizeof((a)[0]) /************************************************************************************************ * Defines * ************************************************************************************************/ void data_bit_move(uint8_t start_bit, uint8_t bit_len, uint64_t data); void product_array(uint8_t send_array[8]); #ifdef __cplusplus }; #endif #endif // __UTILS_H