/*
 * @Author: zhy
 * @Date: 2022-10-11 10:08:57
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-10-11 11:38:57
 * @Description: 
 */

#ifndef BMSER_UTILS_H_
#define BMSER_UTILS_H_
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

int bmser_calculate_crc(uint8_t *req, int nb);

long long bmser_get_time_stamp_ms();

/**
 * @brief       获取自系统启动后经过的时间，不受系统时间设定影响。但是如果有时间跳跃或者系统挂起，该时钟也会停止
 * @param[in]   none
 * @return      long long 
 * @retval      自系统启动后经过的时间 单位：ms
 * @par         修改日志:
 * Date                Author     Description           \n
 * 2023-12-04           JHC        创建初始版本          \n
*/
long long bmser_clocke_get_time_monotonic_ms();
#ifdef __cplusplus
}
#endif

#endif
