| | |
| | | RS485_START_REASON_NONE = 0U, //ÎÞ´¥·¢£¬²»ÐèÒªÖ´ÐÐ |
| | | RS485_START_REASON_KEY , //°´¼ü |
| | | RS485_START_REASON_TIMING, //¶¨Ê± |
| | | RS485_START_REASON_REPORT, //ʵʱÉϱ¨ÐèÒª |
| | | RS485_START_REASON_REPORT, //Éϱ¨ÐèÒª |
| | | RS485_START_REASON_RECORD, //±£´æ¼Ç¼ÐèÒª£¬¿ÉÓÃÓÚÉϱ¨¶³½áµÈÇé¿ö |
| | | |
| | | } RS485_START_REASON; //485Æô¶¯ÔÒò |
| | |
| | | typedef struct |
| | | { |
| | | |
| | | DELAY_SEC_TYPE_T gprs_timeout_para; // GPRS³¬Ê±Ê±¼ä |
| | | DELAY_SEC_TYPE_T wrc_timeout_para; // GPRS³¬Ê±Ê±¼ä |
| | | DELAY_SEC_TYPE_T sys_active_time; // ϵͳ¼¤»îʱ¼ä |
| | | DELAY_SEC_TYPE_T sys_restart_delay_time;// ÏµÍ³ÖØÆôµÄÑÓ³Ùʱ¼ä |
| | | DELAY_SEC_TYPE_T UC_active_time; // ÉÏλ»ú¼¤»îʱ¼ä |
| | |
| | | #define DECIMAL_2_BCD(__DECIMAL__) ((__DECIMAL__ / 16) * 10 + __DECIMAL__ % 16) |
| | | |
| | | |
| | | /*ÿÈÕ0µã*/ |
| | | #define DAILY_ZERO ((&sys_clockBCD_g)->hour == 0 && (&sys_clockBCD_g)->min == 0 && (&sys_clockBCD_g)->sec == 0 ? SET : RESET) |
| | | |
| | | // ´óС¶Ëת»» |
| | | #define BSWAP_16(x) ((x & 0x00ff) << 8) | \ |
| | | ((x & 0xff00) >> 8) |
| | |
| | | |
| | | |
| | | // ϵͳͨÓÃÑÓ³Ùʱ¼äÉèÖà |
| | | #define __SYS_DELAY_SEC_TIME_SET_(__HANDLE__, __NUMBER__) ((&sys_delay_sec_para_g)->__HANDLE__.delay_time = __NUMBER__) |
| | | #define __SYS_DELAY_SEC_TIME_SET_(__HANDLE__, __NUMBER__) do{(&sys_delay_sec_para_g)->__HANDLE__.delay_time = __NUMBER__;__SYS_DELAY_SEC_FLAG_CLEAR_(__HANDLE__);}while(0); |
| | | |
| | | // ϵͳͨÓÃÑÓ³Ùʱ¼ä»ñÈ¡ |
| | | #define __SYS_DELAY_SEC_TIME_GET_(__HANDLE__) ((&sys_delay_sec_para_g)->__HANDLE__.delay_time) |
| | |
| | | #define __SYS_DELAY_SEC_FLAG_SET_(__HANDLE__) ((&sys_delay_sec_para_g)->__HANDLE__.delay_flag = SET) |
| | | // ϵͳͨÓÃÑÓ³Ù±ê־λÇå³ý |
| | | #define __SYS_DELAY_SEC_FLAG_CLEAR_(__HANDLE__) ((&sys_delay_sec_para_g)->__HANDLE__.delay_flag = RESET) |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //extern uint8_t read_data_buf_A_l[200]; |
| | | //extern uint8_t read_data_buf_B_l[200]; |
| | | //extern uint8_t read_data_buf_C_l[200]; |
| | |
| | | |
| | | |
| | | |
| | | int mem_cmp_aray( const void * cs, const void * ct, u32 count ); |
| | | //int mem_cmp_aray( const void * cs, const void * ct, u32 count ); |
| | | |
| | | uint8_t TwoTimeCompara(uint8_t* TimeBCD1, uint8_t* TimeBCD2);//6×Ö½ÚBCDʱ¼äÓ뵱ǰʱ¼ä±È½Ï£¬µ±Ç°Ê±¼ä´ó·µ»Ø0£¬ÏàµÈ·µ»Ø1£¬µ±Ç°Ê±¼äС·µ»Ø2¡£ ´ËÍ⣬ËÑË÷µÄʱ¼ä¸ñʽÎÞЧҲ·µ»Ø0£¬¼ÌÐøËÑË÷¡£ |
| | | |
| | |
| | | |
| | | FlagStatus IntervalTriggerHandle(sClockBCD sys_clockBCD_in,uint16_t IntervalTime,uint8_t IntervalFirstTimeBCD[2]); |
| | | |
| | | FlagStatus IO_JitterEliminationCheck(GPIO_Type* GPIOx, uint32_t GPIO_Pin,uint16_t delay_time_ms,BitAction bit_status); |
| | | |
| | | int Datecmp(const uint8_t *pDate1, const uint8_t *pDate2); |
| | | |
| | | #endif |
| | | |