| | |
| | | #define WRC_PWR_ON GPIO_SetBits(WRC_PWR_PORT, WRC_PWR_PIN) |
| | | #define WRC_PWR_OFF GPIO_ResetBits(WRC_PWR_PORT, WRC_PWR_PIN) |
| | | |
| | | //3V8ʹÄÜ,ÔÝʱ²»Óã¬Ö±½Ó3V8¿ª¹Ø¿ØÖƼ´¿É |
| | | #define PWR_3V8_EN_PORT GPIOE |
| | | #define PWR_3V8_EN_PIN GPIO_Pin_5 |
| | | #define PWR_3V8_ENABLE GPIO_SetBits(PWR_3V8_EN_PORT, PWR_3V8_EN_PIN) |
| | | #define PWR_3V8_DIABLE GPIO_ResetBits(PWR_3V8_EN_PORT, PWR_3V8_EN_PIN) |
| | | |
| | | //3V8¿ª¹Ø |
| | | #define PWR_3V8_O_PORT GPIOE |
| | | #define PWR_3V8_O_PIN GPIO_Pin_7 |
| | |
| | | #define PWR_3V8_OFF GPIO_ResetBits(PWR_3V8_O_PORT, PWR_3V8_O_PIN) |
| | | |
| | | |
| | | #define WRC_UART_SEND(__DATA__,__SIZE__) do{UARTx_SendData_Normal(WRC_UARTX,__DATA__,__SIZE__);delay_us(10);WRC_RX_DMA_CH0_reload();}while(0) |
| | | #define WRC_UART_SEND(__DATA__,__SIZE__) do{UARTx_SendData_Normal(WRC_UARTX,__DATA__,__SIZE__);delay_us(10);WRC_RX_DMA_CH3_Init();}while(0) |
| | | |
| | | |
| | | #define WRC_MODULE_CMD_OPEN 0x1B |
| | |
| | | __IO LINK_STATUS link_status; |
| | | WRC_ERR_CODE wrc_err_code; |
| | | ErrorStatus wrc_result_flag; //×îÖÕµÄͨѶ½á¹ûÅжϣ¬³õʼÖÃFAIL£¬×îÖÕ¸ù¾ÝÐÒéÈ·Èϱ¾´ÎͨѶÊÇ·ñ³É¹¦ |
| | | ErrorStatus report_result_flag; //Éϱ¨ÊÇ·ñ³É¹¦±êÖ¾£¬ÓÃÓÚÒ»ÌìÖ®ÄÚÓÐûÓÐÉÏ´«³É¹¦¹ý£¬±Èwrc_result_flag¿íËÉÒ»µã£¬Ö»ÒªÊý¾ÝÉϱ¨ÓÐÏìÓ¦¼´´ú±íÉϱ¨³É¹¦£¬²»¹ÜºóÐøÖ¸Áµ±Ç°ÓнáÊøÖ¡Ò²´ú±í³É¹¦¡£ |
| | | uint16_t time_out_time_sec; //³¬Ê±Ê±¼ä |
| | | __IO uint16_t wrc_OFF_cnt; //Ô¶´«¹Ø±Õ¼ÆÊý,ÏòÉϼÆÊý£¬ÓÃÓÚÑӳٹرյçÔ´¼°Í˳öͨѶÁ÷³Ì |
| | | |
| | |
| | | FlagStatus recv_flag; |
| | | }WRC_UART_PARA_T; |
| | | |
| | | |
| | | typedef enum |
| | | { |
| | | GMS_WORST = 3U, |
| | | GMS_POOR = 10U, |
| | | GMS_GENERAL = 15U, |
| | | GMS_BEST = 25U, |
| | | }GPRS_MODULE_SIG; |
| | | |
| | | |
| | | typedef struct{ |
| | |
| | | |
| | | |
| | | |
| | | |
| | | void WRC_PWR_GPIO_Init(void); |
| | | |
| | | void WirelessRemoteCommPro(FUN_START_CTRL_PARA_T * sys_fun_run_ctrl_p); |
| | | |