Home
last modified time | relevance | path

Searched refs:vlt (Results 1 - 6 of 6) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/environment_demo/
H A Dapp_demo_gl5537_1.c50 unsigned short vlt = 0; in GetLightStatus() local
67 vlt = g_adcBuf[j]; in GetLightStatus()
68 voltage = (float)vlt * VOLTAGE_1_8_V * in GetLightStatus()
69 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8 * 4 / 4096.0为将码字转换为电压 */ in GetLightStatus()
85 unsigned short vlt = 0; in GetGpio5Voltage() local
104 vlt = g_gpio5AdcBuf[i]; in GetGpio5Voltage()
105 voltage = (float)vlt * VOLTAGE_1_8_V * in GetGpio5Voltage()
106 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in GetGpio5Voltage()
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/
H A Dapp_demo_gl5537_1.c50 unsigned short vlt; in GetLightStatus() local
66 vlt = g_adcBuf[j]; in GetLightStatus()
67 voltage = (float)vlt * VOLTAGE_1_8_V * \ in GetLightStatus()
68 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8 * 4 / 4096.0为将码字转换为电压 */ in GetLightStatus()
83 unsigned short vlt; in GetGpio5Voltage() local
101 vlt = g_gpio5AdcBuf[i]; in GetGpio5Voltage()
102 /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in GetGpio5Voltage()
103 voltage = (float)vlt * VOLTAGE_1_8_V * VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; in GetGpio5Voltage()
/vendor/hisilicon/hispark_pegasus/demo/nfc_demo/
H A Dapp_demo_gl5537_1.c50 unsigned short vlt = 0; in GetLightStatus() local
67 vlt = g_adcBuf[j]; in GetLightStatus()
68 voltage = (float)vlt * VOLTAGE_1_8_V * in GetLightStatus()
69 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8 * 4 / 4096.0为将码字转换为电压 */ in GetLightStatus()
84 unsigned short vlt = 0; in GetGpio5Voltage() local
103 vlt = g_gpio5AdcBuf[i]; in GetGpio5Voltage()
104 voltage = (float)vlt * VOLTAGE_1_8_V * in GetGpio5Voltage()
105 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in GetGpio5Voltage()
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/
H A Dapp_demo_gl5537_1.c50 unsigned short vlt; in GetLightStatus() local
66 vlt = g_adcBuf[j]; in GetLightStatus()
67 voltage = (float)vlt * VOLTAGE_1_8_V * \ in GetLightStatus()
68 VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; /* vlt * 1.8 * 4 / 4096.0为将码字转换为电压 */ in GetLightStatus()
83 unsigned short vlt; in GetGpio5Voltage() local
101 vlt = g_gpio5AdcBuf[i]; in GetGpio5Voltage()
102 /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in GetGpio5Voltage()
103 voltage = (float)vlt * VOLTAGE_1_8_V * VOLTAGE_4_TIMES / ADC_CHANNEL_RANGE; in GetGpio5Voltage()
/vendor/hisilicon/hispark_pegasus/demo/traffic_light_demo/
H A Dapp_demo_gl5537_1.c50 unsigned short vlt; in GetLightStatus() local
66 vlt = g_adcBuf[j]; in GetLightStatus()
67 voltage = (float)vlt * VOLTAGE_1_8_V * \ in GetLightStatus()
68 VOLTAGE_4_TIMES / ADC_CHANNAL_RANGE; /* vlt * 1.8 * 4 / 4096.0为将码字转换为电压 */ in GetLightStatus()
83 unsigned short vlt; in GetGpio5Voltage() local
101 vlt = g_gpio5AdcBuf[i]; in GetGpio5Voltage()
102 /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in GetGpio5Voltage()
103 voltage = (float)vlt * VOLTAGE_1_8_V * VOLTAGE_4_TIMES / ADC_CHANNAL_RANGE; in GetGpio5Voltage()
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/
H A Drobot_control.c90 unsigned short vlt; in get_gpio5_voltage() local
113 vlt = g_gpio5_adc_buf[i]; in get_gpio5_voltage()
114 voltage = (float)vlt * a * b / c; in get_gpio5_voltage()
115 /* vlt * 1.8* 4 / 4096.0为将码字转换为电压 */ in get_gpio5_voltage()

Completed in 3 milliseconds