20 lines
381 B
C
20 lines
381 B
C
#ifndef ATE_MSG_MANAGER_H
|
|
#define ATE_MSG_MANAGER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define ATE_MSG_MAX_LEN 25
|
|
|
|
typedef void *(ate_callback)(void *param);
|
|
|
|
typedef struct {
|
|
int code;
|
|
uint8_t msg[ATE_MSG_MAX_LEN];
|
|
uint8_t len;
|
|
uint16_t out_time;
|
|
ate_callback *callback;
|
|
} result_t;
|
|
|
|
void process_at_cmd_ret(result_t result);
|
|
|
|
#endif // ATE_CMD_MANAGER_H
|