| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * uart_rcv.h
- *
- * Created on: 2022年4月20日
- * Author: dell
- */
- #ifndef VAN_BAP_SCANNER_H_
- #define VAN_BAP_SCANNER_H_
- enum QR_CHECH_STATE
- {
- QR_CHECH_STATE_FIRST = 0,
- QR_CHECH_STATE_TRYAGAIN = 1,
- QR_CHECH_STATE_WAITING= 3,
- QR_CHECH_STATE_SEND= 4,
- };
- enum QR_REC_STATE
- {
- QR_REC_STATE_EMPTY = 0,
- QR_REC_STATE_HEADER ,
- QR_REC_STATE_SENDPRAM,
- QR_REC_STATE_SENDQR,
- QR_REC_STATE_END,
- };
- typedef struct str_hole_info
- {
- uint8_t item;
- uint8_t TtMax[2];
- uint8_t TtMin[2];
- } str_hole_info_t;
- typedef struct str_card_param_info
- {
- char pid[10];
- uint8_t temp[2];
- struct str_hole_info hole_info[10];
- } str_card_param_info_t;
- int parse_qrcode_info(struct str_card_param_info *info, char *qrcode_str);
- void QRparam_upload(str_card_param_info_t *p_str_card_param_info);
- void svanner_receive_Rec_IDLE(UART_HandleTypeDef *huart);
- void svanner_receive_Rec_Start(UART_HandleTypeDef *huart);
- void svanner_receive_analysis(void);
- #endif /* UART_RCV_H_ */
|