Files
BC3D-firmware/app/by_param.h
2024-04-25 22:31:01 +08:00

20 lines
371 B
C

#ifndef _BY_PARAM_H__
#define _BY_PARAM_H__
#include "at32f413.h"
#include "by_utils.h"
typedef struct by_param_type {
uint16_t reg_addr;
uint16_t *data_ptr;
char data_str[20];
} by_param_type;
#define BY_PARAM_NUM_MAX (20)
by_error_status by_param_init(void);
by_error_status by_param_reg(uint16_t reg_addr, uint16_t *data_ptr, const char *data_str);
#endif