/vendor/hisilicon/hispark_pegasus/demo/oc_demo/ |
H A D | iot_profile.h | 21 typedef hi_void (*ClflCallBackFunc) (HiColorfulLightMode currentMode, HiControlModeType currentType); 22 typedef hi_void (*TrflCallBackFunc) (HiTrafficLightMode currentMode, HiControlModeType currentType); 23 typedef hi_void (*EnvCallBackFunc) (HiEnvironmentMode currentMode, HiControlModeType currentType); 102 hi_void SetupTrflControlModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 103 hi_void SetupTrflAutoModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 104 hi_void SetupTrflHumanModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 108 hi_void SetupEnvCombustibleGasModule(HiEnvironmentMode currentMode, HiControlModeType currentType); 109 hi_void SetupEnvHumidityModule(HiEnvironmentMode currentMode, HiControlModeType currentType); 110 hi_void SetupEnvTemperatureModule(HiEnvironmentMode currentMode, HiControlModeType currentType); 111 hi_void SetupEnvAllModule(HiEnvironmentMode currentMode, HiControlModeType currentType); [all...] |
H A D | app_demo_multi_sample.c | 154 unsigned char currentType = 0; in ControlModeSample() local 158 currentType = GetKeyStatus(CURRENT_TYPE); in ControlModeSample() 180 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 192 unsigned char currentType = 0; in DelayAndCheckKeyInterrupt() local 196 currentType = GetKeyStatus(CURRENT_TYPE); in DelayAndCheckKeyInterrupt() 199 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 309 unsigned char currentType = 0; in ColorfulLightSample() local 313 currentType = GetKeyStatus(CURRENT_TYPE); in ColorfulLightSample() 330 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 340 unsigned char currentType in RedLightDarkToBright() local 360 unsigned char currentType = 0; GreenLightDarkToBright() local 380 unsigned char currentType = 0; BlueLightDarkToBright() local 401 unsigned char currentType = 0; PurpleLightDarkToBright() local 423 unsigned char currentType = 0; AllLightDarkToBright() local 455 unsigned char currentType = 0; PwmControlSample() local 493 unsigned char currentType = 0; BrightnessControlSample() local 657 unsigned char currentType = 0; ReturnMainEnumSample() local 727 unsigned char currentType = 0; GpioKey1IsrFuncMode() local 758 unsigned char currentType = 0; OledShowColorfulLightMenuSelect() local 794 unsigned char currentType = 0; OledShowTrafficLightMenuSelect() local [all...] |
H A D | app_demo_traffic_sample.c | 47 unsigned char currentType = 0; in TrafficControlModeSample() local 51 currentType = GetKeyStatus(CURRENT_TYPE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 382 static unsigned char currentType = 0; in OledLedLightHumanReckonShow() local 387 currentType = GetKeyStatus(CURRENT_TYPE); in OledLedLightHumanReckonShow() 389 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 592 static unsigned char currentType = 0; in OledAutoRedLedLigthReckonByTimeShow() local 600 currentType = GetKeyStatus(CURRENT_TYPE); in OledAutoRedLedLigthReckonByTimeShow() 615 static unsigned char currentType = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 624 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 634 if (currentType != GetKeyStatus(CURRENT_TYPE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 635 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 644 static unsigned char currentType in OledHumanRedLedLigthReckonByTimeShow() local 694 static unsigned char currentType = 0; OledAutoRedLedLigthFiveSecondCountShow() local 717 static unsigned char currentType = 0; OledHumanRedLedLigthFiveSecondCountShow() local 933 static unsigned char currentType = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 956 static unsigned char currentType = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1084 static unsigned char currentType = 0; OledAutoYellowLedLigthOnRecordShow() local 1109 static unsigned char currentType = 0; OledHumanRedLedLigth30SecondCountShow() local 1137 static unsigned char currentType = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1167 static unsigned char currentType = 0; OledHumanYellowLedLigthOnRecordShow() local 1218 static unsigned char currentType = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1241 static unsigned char currentType = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1270 static unsigned char currentType = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1694 unsigned char currentType = 0; TrafficDisplay() local [all...] |
H A D | app_demo_iot.c | 80 unsigned char currentType = 0; in TrafficLightMsgRcvCallBack() local 106 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 109 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 113 currentType = SetKeyType(TRAFFIC_HUMAN_TYPE); in TrafficLightMsgRcvCallBack() 115 currentType = SetKeyType(TRAFFIC_NORMAL_TYPE); in TrafficLightMsgRcvCallBack() 117 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 185 void SetupTrflControlModule(HiTrafficLightMode currentMode, HiControlModeType currentType) in SetupTrflControlModule() argument 192 if (currentMode != TRAFFIC_CONTROL_MODE && currentType != RED_ON) { in SetupTrflControlModule() 201 if (currentType == RED_ON) { in SetupTrflControlModule() 203 } else if (currentType in SetupTrflControlModule() 260 SetupTrflAutoModule(HiTrafficLightMode currentMode, HiControlModeType currentType) SetupTrflAutoModule() argument 290 SetupTrflHumanModule(HiTrafficLightMode currentMode, HiControlModeType currentType) SetupTrflHumanModule() argument [all...] |
/vendor/hisilicon/hispark_pegasus/demo/environment_demo/ |
H A D | app_demo_multi_sample.c | 153 unsigned char currentType = 0; in ControlModeSample() local 157 currentType = GetKeyStatus(CURRENT_TYPE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 191 unsigned char currentType = 0; in DelayAndCheckKeyInterrupt() local 195 currentType = GetKeyStatus(CURRENT_TYPE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 308 unsigned char currentType = 0; in ColorfulLightSample() local 312 currentType = GetKeyStatus(CURRENT_TYPE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 339 unsigned char currentType in RedLightDarkToBright() local 359 unsigned char currentType = 0; GreenLightDarkToBright() local 379 unsigned char currentType = 0; BlueLightDarkToBright() local 400 unsigned char currentType = 0; PurpleLightDarkToBright() local 422 unsigned char currentType = 0; AllLightDarkToBright() local 454 unsigned char currentType = 0; PwmControlSample() local 492 unsigned char currentType = 0; BrightnessControlSample() local 656 unsigned char currentType = 0; ReturnMainEnumSample() local 726 unsigned char currentType = 0; GpioKey1IsrFuncMode() local 757 unsigned char currentType = 0; OledShowColorfulLightMenuSelect() local 793 unsigned char currentType = 0; OledShowTrafficLightMenuSelect() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/ |
H A D | app_demo_multi_sample.c | 153 unsigned char currentType = 0; in ControlModeSample() local 157 currentType = GetKeyStatus(CURRENT_TYPE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 191 unsigned char currentType = 0; in DelayAndCheckKeyInterrupt() local 195 currentType = GetKeyStatus(CURRENT_TYPE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 308 unsigned char currentType = 0; in ColorfulLightSample() local 312 currentType = GetKeyStatus(CURRENT_TYPE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 339 unsigned char currentType in RedLightDarkToBright() local 359 unsigned char currentType = 0; GreenLightDarkToBright() local 379 unsigned char currentType = 0; BlueLightDarkToBright() local 400 unsigned char currentType = 0; PurpleLightDarkToBright() local 422 unsigned char currentType = 0; AllLightDarkToBright() local 454 unsigned char currentType = 0; PwmControlSample() local 492 unsigned char currentType = 0; BrightnessControlSample() local 656 unsigned char currentType = 0; ReturnMainEnumSample() local 726 unsigned char currentType = 0; GpioKey1IsrFuncMode() local 757 unsigned char currentType = 0; OledShowColorfulLightMenuSelect() local 793 unsigned char currentType = 0; OledShowTrafficLightMenuSelect() local [all...] |
H A D | app_demo_traffic_sample.c | 47 unsigned char currentType = 0; in TrafficControlModeSample() local 51 currentType = GetKeyStatus(CURRENT_TYPE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 354 static unsigned char currentType = 0; in OledLedLightHumanReckonShow() local 359 currentType = GetKeyStatus(CURRENT_TYPE); in OledLedLightHumanReckonShow() 361 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 564 static unsigned char currentType = 0; in OledAutoRedLedLigthReckonByTimeShow() local 572 currentType = GetKeyStatus(CURRENT_TYPE); in OledAutoRedLedLigthReckonByTimeShow() 587 static unsigned char currentType = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 596 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 606 if (currentType != GetKeyStatus(CURRENT_TYPE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 607 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 616 static unsigned char currentType in OledHumanRedLedLigthReckonByTimeShow() local 666 static unsigned char currentType = 0; OledAutoRedLedLigthFiveSecondCountShow() local 689 static unsigned char currentType = 0; OledHumanRedLedLigthFiveSecondCountShow() local 905 static unsigned char currentType = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 928 static unsigned char currentType = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1056 static unsigned char currentType = 0; OledAutoYellowLedLigthOnRecordShow() local 1081 static unsigned char currentType = 0; OledHumanRedLedLigth30SecondCountShow() local 1109 static unsigned char currentType = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1139 static unsigned char currentType = 0; OledHumanYellowLedLigthOnRecordShow() local 1190 static unsigned char currentType = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1213 static unsigned char currentType = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1242 static unsigned char currentType = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1666 unsigned char currentType = 0; TrafficDisplay() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/traffic_light_demo/ |
H A D | app_demo_multi_sample.c | 153 unsigned char currentType = 0; in ControlModeSample() local 157 currentType = GetKeyStatus(CURRENT_TYPE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 191 unsigned char currentType = 0; in DelayAndCheckKeyInterrupt() local 195 currentType = GetKeyStatus(CURRENT_TYPE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 308 unsigned char currentType = 0; in ColorfulLightSample() local 312 currentType = GetKeyStatus(CURRENT_TYPE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 339 unsigned char currentType in RedLightDarkToBright() local 359 unsigned char currentType = 0; GreenLightDarkToBright() local 379 unsigned char currentType = 0; BlueLightDarkToBright() local 400 unsigned char currentType = 0; PurpleLightDarkToBright() local 422 unsigned char currentType = 0; AllLightDarkToBright() local 454 unsigned char currentType = 0; PwmControlSample() local 492 unsigned char currentType = 0; BrightnessControlSample() local 656 unsigned char currentType = 0; ReturnMainEnumSample() local 726 unsigned char currentType = 0; GpioKey1IsrFuncMode() local 757 unsigned char currentType = 0; OledShowColorfulLightMenuSelect() local 793 unsigned char currentType = 0; OledShowTrafficLightMenuSelect() local [all...] |
H A D | app_demo_traffic_sample.c | 47 unsigned char currentType = 0; in TrafficControlModeSample() local 51 currentType = GetKeyStatus(CURRENT_TYPE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 354 static unsigned char currentType = 0; in OledLedLightHumanReckonShow() local 359 currentType = GetKeyStatus(CURRENT_TYPE); in OledLedLightHumanReckonShow() 361 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 564 static unsigned char currentType = 0; in OledAutoRedLedLigthReckonByTimeShow() local 572 currentType = GetKeyStatus(CURRENT_TYPE); in OledAutoRedLedLigthReckonByTimeShow() 587 static unsigned char currentType = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 596 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 606 if (currentType != GetKeyStatus(CURRENT_TYPE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 607 currentType = GetKeyStatus(CURRENT_TYPE); in OledHumanNormalRedLedLigthReckonByTimeShow() 616 static unsigned char currentType in OledHumanRedLedLigthReckonByTimeShow() local 666 static unsigned char currentType = 0; OledAutoRedLedLigthFiveSecondCountShow() local 689 static unsigned char currentType = 0; OledHumanRedLedLigthFiveSecondCountShow() local 905 static unsigned char currentType = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 928 static unsigned char currentType = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1056 static unsigned char currentType = 0; OledAutoYellowLedLigthOnRecordShow() local 1081 static unsigned char currentType = 0; OledHumanRedLedLigth30SecondCountShow() local 1109 static unsigned char currentType = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1139 static unsigned char currentType = 0; OledHumanYellowLedLigthOnRecordShow() local 1190 static unsigned char currentType = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1213 static unsigned char currentType = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1242 static unsigned char currentType = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1666 unsigned char currentType = 0; TrafficDisplay() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/nfc_demo/ |
H A D | app_demo_multi_sample.c | 153 unsigned char currentType = 0; in ControlModeSample() local 157 currentType = GetKeyStatus(CURRENT_TYPE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 191 unsigned char currentType = 0; in DelayAndCheckKeyInterrupt() local 195 currentType = GetKeyStatus(CURRENT_TYPE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 308 unsigned char currentType = 0; in ColorfulLightSample() local 312 currentType = GetKeyStatus(CURRENT_TYPE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 339 unsigned char currentType in RedLightDarkToBright() local 359 unsigned char currentType = 0; GreenLightDarkToBright() local 379 unsigned char currentType = 0; BlueLightDarkToBright() local 400 unsigned char currentType = 0; PurpleLightDarkToBright() local 422 unsigned char currentType = 0; AllLightDarkToBright() local 454 unsigned char currentType = 0; PwmControlSample() local 492 unsigned char currentType = 0; BrightnessControlSample() local 656 unsigned char currentType = 0; ReturnMainEnumSample() local 726 unsigned char currentType = 0; GpioKey1IsrFuncMode() local 746 unsigned char currentType = 0; OledShowColorfulLightMenuSelect() local 782 unsigned char currentType = 0; OledShowTrafficLightMenuSelect() local [all...] |