Searched refs:spiBusNode (Results 1 – 1 of 1) sorted by relevance
/ohos5.0/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_config_parser.c | 381 … ParseSensorSpiBus(struct DeviceResourceIface *parser, const struct DeviceResourceNode *spiBusNode, in ParseSensorSpiBus() argument 386 ret = parser->GetUint32(spiBusNode, "maxSpeedHz", &busConfig->spiCfg.spi.maxSpeedHz, 0); in ParseSensorSpiBus() 388 ret = parser->GetUint16(spiBusNode, "mode", &busConfig->spiCfg.spi.mode, 0); in ParseSensorSpiBus() 390 ret = parser->GetUint8(spiBusNode, "transferMode", &busConfig->spiCfg.spi.transferMode, 0); in ParseSensorSpiBus() 392 ret = parser->GetUint8(spiBusNode, "bitsPerWord", &busConfig->spiCfg.spi.bitsPerWord, 0); in ParseSensorSpiBus() 402 const struct DeviceResourceNode *spiBusNode = NULL; in ParseSensorBus() local 421 spiBusNode = parser->GetChildNode(busNode, "spiBusCfg"); in ParseSensorBus() 422 if (spiBusNode != NULL) { in ParseSensorBus() 423 ret = ParseSensorSpiBus(parser, spiBusNode, &config->busCfg); in ParseSensorBus()
|