Files
BC2D-firmware/app/by_utils.h

23 lines
303 B
C
Raw Normal View History

2024-04-16 18:17:30 +08:00
#ifndef _BY_UTILS_H__
#define _BY_UTILS_H__
#include "at32f413.h"
2024-04-26 16:13:07 +08:00
typedef enum {
BY_ERROR = 0,
BY_SUCCESS = !BY_ERROR
} by_error_status;
typedef enum {
T_U8 = 0,
T_U16,
T_U32,
T_S8,
T_S16,
T_S32,
T_F32
} by_data_type;
2024-04-16 18:17:30 +08:00
int32_t clip_s32(int32_t x, int32_t low, int32_t up);
#endif