12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //==================================================================
- //
- // Filename: app_i2c.h
- // Description:
- //
- //------------------------------------------------------------------
- //
- // version:
- // data: 10:10am, 9.Sep.2019, written by dwd
- // Description:
- //
- //------------------------------------------------------------------
- //==================================================================
- #ifndef _MAPP_433_PT4306_H_
- #define _MAPP_433_PT4306_H_
- /*------------------------------------------------------------------------------
- * I N C L U D E
- *------------------------------------------------------------------------------*/
- #include "stm32f0xx.h"
- /*------------------------------------------------------------------------------
- * D E F I N E
- *------------------------------------------------------------------------------*/
- /*------------------------------------------------------------------------------
- * S T R U C T
- *------------------------------------------------------------------------------*/
- typedef enum {
- P433_ON_RESET,
- P433_ON_INIT,
- P433_ON_WAIT,
- P433_ON_STABLE,
- P433_SYSTEM_RUN,
- P433_OFF_INIT,
- P433_OFF_SLEEP,
- P433_OFF_WAIT,
-
- NumOf433State
- } T_Pt4306_STATE;
- /*------------------------------------------------------------------------------
- * E X T E R N
- *------------------------------------------------------------------------------*/
- extern T_Pt4306_STATE gt433pt4306state;
- /*------------------------------------------------------------------------------
- * P R O T O T Y P E
- *------------------------------------------------------------------------------*/
- void PT4306_Tick(void);
- void PT4306InitVal(void);
- void PT4306TaskTmr(void);
- int TIM3_init(void);
- int TIM6_init(void);
- #endif /* _MAPP_I2C_H_ */
- /*=============================== END OF FILE ===============================*/
|