|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef _DATAPROC_H
- #define _DATAPROC_H
- #include "stm32f10x.h"
- #include "nrf24L01.h"
- #include "delay.h"
- #include "printf.h"
- #include "led.h"
- #include "USART2.h"
- #include "stmflash.h"
-
-
- void DataProc_Nrf24l01(void);
- void DataProc_Nrf24l01_SPI2(void);
-
- u8 DataProc_A0_WriteNum_SPI2(void);
- u8 DataProc_A3_nrf(void);
- u8 DataProc_A4_nrf(void);
-
- void DataProc_RecNrf24L01(void);
- void Usart1_Process(void);
-
- void DataProc_1356(void);
- void DataProc_USART3(void);
- void Data_Init(void);
- void DataProc_USART1(void);
-
- #define TestFlashAddr 0x80020000
-
- enum
- {
- Reset = 0x21, //Ķλ
- GetFirmversion = 0x22, //ȡ̼汾
-
- SetReaderID = 0x25, //ĶID
- GetReaderID = 0x26, //ȡĶID
-
- DelWhite = 0x71, //ɾ
- OpenWhite = 0x73, //
- CloseWhite = 0x74, //رհ
- AddWhite = 0x75, //Ӱ
- GetWhite = 0x78, //ȡ
-
- Heart = 0x82, //
-
- GetWhiteState = 0x94 //ȡ״̬
- };
-
- enum
- {
- WriteNum = 0xA0, //A0д
- WriteNumState, //A1дŽϱ
- Read_1345Num, //A2ٶһο
- Read_24Num, //A3
- ReadCardNum, //A42.4G
- UpdateFirmversion, //A5̼
- UpdateFirm, //A6̼
- UpdateFirmState, //A7ϱ
- #if APP1
- Config24Agreement, //A8??????
- #endif
-
- };
-
- #endif
|