Home
last modified time | relevance | path

Searched refs:GetUint8 (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hdf_core/framework/model/camera/parser/src/
Dcamera_config_parser.c47 ret = drsOps->GetUint8(node, "id", &sensorConfig->id, 0); in ParseCameraSensorDeviceConfig()
49 ret = drsOps->GetUint8(node, "exposure", &sensorConfig->exposure, 0); in ParseCameraSensorDeviceConfig()
51 ret = drsOps->GetUint8(node, "mirror", &sensorConfig->mirror, 0); in ParseCameraSensorDeviceConfig()
53 ret = drsOps->GetUint8(node, "gain", &sensorConfig->gain, 0); in ParseCameraSensorDeviceConfig()
78 ret = drsOps->GetUint8(node, "id", &ispConfig->id, 0); in ParseCameraIspDeviceConfig()
80 ret = drsOps->GetUint8(node, "brightness", &ispConfig->brightness, 0); in ParseCameraIspDeviceConfig()
82 ret = drsOps->GetUint8(node, "contrast", &ispConfig->contrast, 0); in ParseCameraIspDeviceConfig()
84 ret = drsOps->GetUint8(node, "saturation", &ispConfig->saturation, 0); in ParseCameraIspDeviceConfig()
86 ret = drsOps->GetUint8(node, "hue", &ispConfig->hue, 0); in ParseCameraIspDeviceConfig()
88 ret = drsOps->GetUint8(node, "sharpness", &ispConfig->sharpness, 0); in ParseCameraIspDeviceConfig()
[all …]
/drivers/hdf_core/framework/model/network/bluetooth/
Dhdf_chip_config.c19 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParsePowerConfig()
24 if (drsOps->GetUint8(node, "powerSeqDelay", &config->powerSeqDelay, 0) != HDF_SUCCESS) { in ParsePowerConfig()
29 if (drsOps->GetUint8(node, "powerType", &config->type, 0) != HDF_SUCCESS) { in ParsePowerConfig()
39 if (drsOps->GetUint8(node, "activeLevel", &config->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParsePowerConfig()
109 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseResetConfig()
114 if (drsOps->GetUint8(node, "resetType", &reset->resetType, 0) != HDF_SUCCESS) { in ParseResetConfig()
124 if (drsOps->GetUint8(node, "activeLevel", &reset->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParseResetConfig()
129 if (drsOps->GetUint8(node, "resetHoldTime", &reset->resetHoldTime, 0) != HDF_SUCCESS) { in ParseResetConfig()
156 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseChipConfig()
162 if (drsOps->GetUint8(node, "bootUpTimeOut", &config->bootUpTimeOut, 0) != HDF_SUCCESS) { in ParseChipConfig()
Dhdf_bt_core.c77 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetString == NULL) { in ParseTransportConfig()
81 if (drsOps->GetUint8(node, "type", &config->type, 0) != HDF_SUCCESS) { in ParseTransportConfig()
/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_config_parser.c24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig()
33 ret = drsOps->GetUint8(node, "mode", &staConfig->mode, 0); in ParseWlanStaConfig()
52 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanApConfig()
61 ret = drsOps->GetUint8(node, "mode", &apConfig->mode, 0); in ParseWlanApConfig()
66 ret = drsOps->GetUint8(node, "vapResNum", &apConfig->vapResNum, 0); in ParseWlanApConfig()
71 ret = drsOps->GetUint8(node, "userResNum", &apConfig->userResNum, 0); in ParseWlanApConfig()
91 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanP2PConfig()
100 ret = drsOps->GetUint8(node, "mode", &p2pConfig->mode, 0); in ParseWlanP2PConfig()
119 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseWlanMac80211Config()
123 ret = drsOps->GetUint8(node, "mode", &macConfig->mode, 0); in ParseWlanMac80211Config()
[all …]
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_cfg_mgr.c37 if (drsOps->GetUint8(devDescNode, DESC_LENGTH, &devDesc->bLength, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
45 if (drsOps->GetUint8(devDescNode, DESC_TYPE, &devDesc->bDescriptorType, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
46 drsOps->GetUint8(devDescNode, USBDEV_CLASS, &devDesc->bDeviceClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
47 … drsOps->GetUint8(devDescNode, USBDEV_SUBCLASS, &devDesc->bDeviceSubClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
48 … drsOps->GetUint8(devDescNode, USBDEV_PROTOCOL, &devDesc->bDeviceProtocol, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
49 … drsOps->GetUint8(devDescNode, USBDEV_MAXSIZE, &devDesc->bMaxPacketSize0, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
50 … drsOps->GetUint8(devDescNode, USBDEV_MANUFACTURER, &devDesc->iManufacturer, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
51 drsOps->GetUint8(devDescNode, USBDEV_PRODUCT, &devDesc->iProduct, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
52 … drsOps->GetUint8(devDescNode, USBDEV_SERIALNUM, &devDesc->iSerialNumber, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
53 … drsOps->GetUint8(devDescNode, USBDEV_NUMCFG, &devDesc->bNumConfigurations, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
[all …]
/drivers/hdf_core/framework/model/network/ethernet/src/
Deth_device.c89 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint32 == NULL) { in ParseEthMacConfig()
101 if (drsOps->GetUint8(node, "mdioFrqDiv", &ethMacConfig->mdioFrqDiv, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
105 if (drsOps->GetUint8(node, "txBusy", &ethMacConfig->txBusy, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
130 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseEthPhyConfig()
135 if (drsOps->GetUint8(node, "phyMode", &ethPhyConfig->phyMode, 0) != HDF_SUCCESS) { in ParseEthPhyConfig()
151 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseEthDevInstConfig()
155 if (drsOps->GetUint8(node, "deviceInstId", &devLstConfig->deviceInstId, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig()
159 if (drsOps->GetUint8(node, "isSetDefault", &devLstConfig->isSetDefault, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig()
167 if (drsOps->GetUint8(node, "hwXmitq", &devLstConfig->hwXmitq, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig()
171 if (drsOps->GetUint8(node, "qSize", &devLstConfig->qSize, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig()
[all …]
/drivers/hdf_core/framework/model/input/driver/
Dinput_config_parser.c44 ret = parser->GetUint8(infraredNode, "inputType", &config->devType, 0); in ParseInfraredConfig()
72 ret = parser->GetUint8(keyNode, "inputType", &config->devType, 0); in ParseKeyConfig()
99 int32_t ret = parser->GetUint8(encoderNode, "inputType", &config->devType, 0); in ParseEncoderConfig()
115 ret = parser->GetUint8(attrNode, "inputType", &attr->devType, 0); in ParseAttr()
129 ret = parser->GetUint8(busNode, "busType", &bus->busType, 0); in ParseBus()
133 ret = parser->GetUint8(busNode, "busNum", &bus->i2c.busNum, 0); in ParseBus()
144 ret = parser->GetUint8(busNode, "busNum", &bus->spi.busNum, 0); in ParseBus()
198 ret = parser->GetUint8(featureNode, "capacitanceTest", &feature->capacitanceTest, 0); in ParseFeature()
200 ret = parser->GetUint8(featureNode, "gestureMode", &feature->gestureMode, 0); in ParseFeature()
202 ret = parser->GetUint8(featureNode, "gloverMOde", &feature->gloverMOde, 0); in ParseFeature()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/common/
Di2s_test.c400 int32_t ret = face->GetUint8(node, "writeChannel", &test->writeChannel, 0); in I2sTestInitCodecFromHcs()
405 ret = face->GetUint8(node, "i2slFsSel", &test->i2slFsSel, 0); in I2sTestInitCodecFromHcs()
411 ret = face->GetUint8(node, "channelMode", &test->channelMode, 0); in I2sTestInitCodecFromHcs()
416 ret = face->GetUint8(node, "channelIfMode", &test->channelIfMode, 0); in I2sTestInitCodecFromHcs()
439 ret = face->GetUint8(node, "sampleRate", &test->sampleRate, 0); in I2sTestInitFromHcs()
444 ret = face->GetUint8(node, "type", &test->type, 0); in I2sTestInitFromHcs()
449 ret = face->GetUint8(node, "samplePrecision", &test->samplePrecision, 0); in I2sTestInitFromHcs()
Dregulator_test.c355 ret = face->GetUint8(node, "mode", &test->mode, 0); in RegulatorTestInitFromHcs()
/drivers/hdf_core/adapter/platform/uart/
Duart_stm32f4xx.c373 if (dri->GetUint8(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartHcs()
381 if (dri->GetUint8(resourceNode, "dataWidth", &resource->dataWidth, 0) != HDF_SUCCESS) { in GetUartHcs()
385 if (dri->GetUint8(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartHcs()
389 if (dri->GetUint8(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartHcs()
393 if (dri->GetUint8(resourceNode, "transDir", &resource->transDir, 0) != HDF_SUCCESS) { in GetUartHcs()
397 if (dri->GetUint8(resourceNode, "flowCtrl", &resource->flowCtrl, 0) != HDF_SUCCESS) { in GetUartHcs()
401 if (dri->GetUint8(resourceNode, "overSimpling", &resource->overSimpling, 0) != HDF_SUCCESS) { in GetUartHcs()
405 if (dri->GetUint8(resourceNode, "transMode", &resource->transMode, 0) != HDF_SUCCESS) { in GetUartHcs()
409 if (dri->GetUint8(resourceNode, "uartType", &resource->uartType, 0) != HDF_SUCCESS) { in GetUartHcs()
413 if (dri->GetUint8(resourceNode, "uartDePin", &resource->dePin, 0) != HDF_SUCCESS) { in GetUartHcs()
[all …]
/drivers/hdf_core/framework/utils/src/hcs_parser/
Ddevice_resource_if.c17 instance->GetUint8 = HcsGetUint8; in HcsIfaceConstruct()
/drivers/hdf_core/adapter/platform/i2c/
Di2c_stm32f4xx.c107 …if (dri == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL || dri->GetUint32Array == NULL)… in GetI2cDeviceResource()
112 if (dri->GetUint8(resourceNode, "port", &i2cResource->port, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
117 if (dri->GetUint8(resourceNode, "devMode", &i2cResource->devMode, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
/drivers/hdf_core/framework/test/unittest/platform/config/
Dcan_test_config.c68 ret = drsOps->GetUint8(node, "work_mode", &config->workMode, CAN_TEST_WORK_MODE); in CanTestReadConfig()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dspi_virtual.c329 …if (iface == NULL || iface->GetUint32 == NULL || iface->GetUint16 == NULL || iface->GetUint8 == NU… in SpiGetCfgFromHcs()
353 if (iface->GetUint8(node, "bitsPerWord", &virtual->cfg.bitsPerWord, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
357 if (iface->GetUint8(node, "transferMode", &virtual->cfg.transferMode, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
Dregulator_virtual.c210 ret = drsOps->GetUint8(node, "mode", &regNode->regulatorInfo.constraints.mode, 0); in VirtualRegulatorReadHcs()
/drivers/hdf_core/interfaces/inner_api/utils/
Ddevice_resource_if.h126 …int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, u… member
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c374 ret = parser->GetUint8(spiBusNode, "transferMode", &busConfig->spiCfg.spi.transferMode, 0); in ParseSensorSpiBus()
376 ret = parser->GetUint8(spiBusNode, "bitsPerWord", &busConfig->spiCfg.spi.bitsPerWord, 0); in ParseSensorSpiBus()
388 ret = parser->GetUint8(busNode, "busType", &config->busCfg.busType, 0); in ParseSensorBus()
390 ret = parser->GetUint8(busNode, "regBigEndian", &config->busCfg.regBigEndian, 0); in ParseSensorBus()
/drivers/hdf_core/adapter/platform/pwm/
Dpwm_stm32f4xx.c248 if (dri == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL) { in GetPwmDeviceResource()
253 if (dri->GetUint8(resourceNode, "pwmTim", &resource->pwmTim, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
263 if (dri->GetUint8(resourceNode, "pwmCh", &resource->pwmCh, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
/drivers/hdf_core/framework/test/unittest/utils/hcs_parser/unittest/
Dhcs_config_test.c243 ret = g_devResInstance->GetUint8(audioNode, SMARTPA_NUM, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueSuccess()
260 ret = g_devResInstance->GetUint8(audioNode, INVALID_STRING, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
264 ret = g_devResInstance->GetUint8(audioNode, READ_U64DATA, NULL, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
268 ret = g_devResInstance->GetUint8(audioNode, VOICE_VOL_LEVEL, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
272 ret = g_devResInstance->GetUint8(audioNode, SMARTPA_ADDR, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
276 ret = g_devResInstance->GetUint8(audioNode, READ_U64DATA, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_parser.c68 ret = parser->GetUint8(busNode, "busType", &config->vibratorBus.busType, 0); in ParseVibratorBus()
/drivers/peripheral/usb/gadget/function/usbfn/
Ddev_usbfn.c172 if (iface->GetUint8(device->property, "use_hcs", &useHcs, 0) != HDF_SUCCESS) { in UsbFnDriverInit()
/drivers/hdf_core/framework/model/display/driver/backlight/
Dpwm_bl.c81 ret = parser->GetUint8(node, "pwmDevNum", pwmNum, 0); in ParsePwmNum()
/drivers/hdf_core/framework/model/usb/src/
Dusb_ddk_pnp_loader.c479 if (devResIface->GetUint8(node, "deviceClass", &table->deviceClass, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice()
484 if (devResIface->GetUint8(node, "deviceSubClass", &table->deviceSubClass, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice()
489 if (devResIface->GetUint8(node, "deviceProtocol", &table->deviceProtocol, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice()
520 if (devResIface->GetUint8(node, "length", &table->length, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable()
/drivers/hdf_core/adapter/platform/can/
Dcan_virtual.c70 if (iface->GetUint8(node, "work_mode", &virtualCan->workMode, 0) != HDF_SUCCESS) { in VirtualReadConfigFromHcs()
/drivers/hdf_core/adapter/platform/spi/
Dspi_stm32f4xx.c469 if (dri == NULL || dri->GetUint16 == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL) { in GetSpiDeviceResource()
475 if (dri->GetUint8(resourceNode, g_parseHcsMap[i], &temp[i], 0) != HDF_SUCCESS) { in GetSpiDeviceResource()

12