123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**
- * @file bikegearsensor.h
- * @author Zhou xiong(zhouxiong9@midea.com)
- * @brief Gear Sensor of ebike
- * @version 0.1
- * @date 2023-02-03
- *
- * @copyright Copyright (c) 2021
- *
- */
- /************************************************************************
- Beginning of File, do not put anything above here except notes
- Compiler Directives:
- *************************************************************************/
- #ifndef BIKEGEARSENSOR_H
- #define BIKEGEARSENSOR_H
- #include "typedefine.h"
- /****************************************
- *
- * Definitions & Macros
- *
- ****************************************/
- #define GEARSENSOR_OUT_DEFAULT \
- { \
- 0,0, FALSE \
- } // Default value
- /***************************************
- *
- * Type Definations
- *
- ***************************************/
- /**
- * @brief Bike Gear Sensor out
- *
- */
- typedef struct
- {
- UWORD uwDetectTimeCnt; // Cnt of detect GPIO state change
- UWORD uwGearSensorCnt; // Cnt of detect GPIO state change
- BOOL blGearSensorOnFlg; // flag of GearSensor on or off
- } BIKE_GEARSENSOR_OUT;
- /*****************************************
- *
- * Exported variable
- *
- ****************************************/
- /***************************************
- *
- * Function Definations
- *
- ***************************************/
- void bikegearsensor_voBikeGearsensorInit(void); // api function
- void bikegearsensor_voBikeGearsensorDetect(void); // api function
- BOOL bikegearsensor_blBikeGetState(void);
- /************************************************************************/
- #endif
- /************************************************************************
- End of this File (EOF):
- Do not put anything after this part!
- *************************************************************************/
|