Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 663) sorted by relevance

12345678910>>...27

/drivers/peripheral/usb/cfg/
Dinit.usb.configfs.cfg5 "mkdir /config/usb_gadget/g1/functions/mass_storage.usb"
8 "name" : "param:sys.usb.config=none && param:sys.usb.configfs=1",
9 "condition" : "sys.usb.config=none && sys.usb.configfs=1",
11 "write /config/usb_gadget/g1/UDC none",
14 "write /config/usb_gadget/g1/bDeviceClass 0",
15 "write /config/usb_gadget/g1/bDeviceSubClass 0",
16 "write /config/usb_gadget/g1/bDeviceProtocol 0",
17 "rm /config/usb_gadget/g1/configs/b.1/f1",
18 "rm /config/usb_gadget/g1/configs/b.1/rndis.rn0",
19 "rmdir /config/usb_gadget/g1/functions/rndis.rn0",
[all …]
/drivers/hdf_core/framework/support/platform/src/pwm/
Dpwm_if.c76 struct PwmConfig config; in PwmSetPeriod() local
80 if (PwmGetConfig(handle, &config) != HDF_SUCCESS) { in PwmSetPeriod()
84 curValue = config.period; in PwmSetPeriod()
85 config.period = period; in PwmSetPeriod()
86 ret = PwmSetConfig(handle, &config); in PwmSetPeriod()
88 HDF_LOGI("PwmSetPeriod: success. period: %d -> %d!", curValue, config.period); in PwmSetPeriod()
95 struct PwmConfig config; in PwmSetDuty() local
99 if (PwmGetConfig(handle, &config) != HDF_SUCCESS) { in PwmSetDuty()
103 curValue = config.duty; in PwmSetDuty()
104 config.duty = duty; in PwmSetDuty()
[all …]
Dpwm_if_u.c100 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config) in PwmSetConfig() argument
106 if (handle == NULL || config == NULL) { in PwmSetConfig()
122 if (!HdfSbufWriteBuffer(buf, config, sizeof(struct PwmConfig))) { in PwmSetConfig()
137 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config) in PwmGetConfig() argument
145 if (handle == NULL || config == NULL) { in PwmGetConfig()
179 if (memcpy_s(config, sizeof(struct PwmConfig), rBuf, rLen) != EOK) { in PwmGetConfig()
196 …c int32_t PwmConfigTransSet(DevHandle handle, enum PwmSetConfigType type, struct PwmConfig *config) in PwmConfigTransSet() argument
210 nowCfg.period = config->period; in PwmConfigTransSet()
214 nowCfg.duty = config->duty; in PwmConfigTransSet()
218 nowCfg.polarity = config->polarity; in PwmConfigTransSet()
[all …]
Dpwm_core.c66 int32_t PwmDeviceSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in PwmDeviceSetConfig() argument
70 if (pwm == NULL || config == NULL) { in PwmDeviceSetConfig()
75 if (memcmp(config, &(pwm->cfg), sizeof(*config)) == 0) { in PwmDeviceSetConfig()
85 ret = pwm->method->setConfig(pwm, config); in PwmDeviceSetConfig()
92 pwm->cfg = *config; in PwmDeviceSetConfig()
97 int32_t PwmDeviceGetConfig(struct PwmDev *pwm, struct PwmConfig *config) in PwmDeviceGetConfig() argument
99 if (pwm == NULL || config == NULL) { in PwmDeviceGetConfig()
105 *config = pwm->cfg; in PwmDeviceGetConfig()
135 struct PwmConfig *config = NULL; in PwmUserSetConfig() local
141 if (!HdfSbufReadBuffer(data, (const void **)&config, &size)) { in PwmUserSetConfig()
[all …]
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_parser.c16 struct VibratorCfgData *config) in ParseVibratorAttr() argument
21 CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(config, HDF_ERR_INVALID_PARAM); in ParseVibratorAttr()
23 ret = parser->GetUint16(attrNode, "chipIdRegister", &config->vibratorAttr.chipIdReg, 0); in ParseVibratorAttr()
25 ret = parser->GetUint16(attrNode, "chipIdValue", &config->vibratorAttr.chipIdValue, 0); in ParseVibratorAttr()
27 … ret = parser->GetUint16(attrNode, "defaultIntensity", &config->vibratorAttr.defaultIntensity, 0); in ParseVibratorAttr()
29 … ret = parser->GetUint16(attrNode, "defaultFrequency", &config->vibratorAttr.defaultFrequency, 0); in ParseVibratorAttr()
36 struct VibratorCfgData *config) in ParseVibratorInfo() argument
41 CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(config, HDF_ERR_INVALID_PARAM); in ParseVibratorInfo()
47 …ret = parser->GetUint16(infoNode, "intensityMaxValue", (uint16_t *)&config->vibratorInfo.intensity… in ParseVibratorInfo()
49 …ret = parser->GetUint16(infoNode, "intensityMinValue", (uint16_t *)&config->vibratorInfo.intensity… in ParseVibratorInfo()
[all …]
/drivers/hdf_core/framework/model/network/bluetooth/
Dhdf_chip_config.c11 static int ParsePowerConfig(const struct DeviceResourceNode *node, struct HdfPowerConfig *config) in ParsePowerConfig() argument
14 if (node == NULL || config == 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()
34 if (config->type == POWER_TYPE_GPIO) { in ParsePowerConfig()
35 if (drsOps->GetUint16(node, "gpioId", &config->gpio.gpioId, 0) != HDF_SUCCESS) { in ParsePowerConfig()
39 if (drsOps->GetUint8(node, "activeLevel", &config->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParsePowerConfig()
52 struct HdfPowersConfig *config = NULL; in ParsePowersConfig() local
68config = OsalMemCalloc(sizeof(struct HdfPowersConfig) + nodeCount * sizeof(struct HdfPowerConfig)); in ParsePowersConfig()
69 if (config == NULL) { in ParsePowersConfig()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/common/
Dpin_test.c34 static int32_t PinTestGetTestConfig(struct PinTestConfig *config) in PinTestGetTestConfig() argument
48 reply = HdfSbufObtain(sizeof(*config) + sizeof(uint64_t)); in PinTestGetTestConfig()
70 if (len != sizeof(*config)) { in PinTestGetTestConfig()
71 HDF_LOGE("PinTestGetTestConfig: config size:%zu, read size:%u!", sizeof(*config), len); in PinTestGetTestConfig()
77 if (memcpy_s(config, sizeof(*config), buf, sizeof(*config)) != EOK) { in PinTestGetTestConfig()
83 config->pinName = config->pinNameBuf; in PinTestGetTestConfig()
100 ret = PinTestGetTestConfig(&tester.config); in PinTesterGet()
106 tester.handle = PinGet(tester.config.pinName); in PinTesterGet()
108 HDF_LOGE("PinTesterGet: open pin:%s fail!", tester.config.pinName); in PinTesterGet()
129 ret = PinSetPull(tester->handle, tester->config.PullTypeNum); in PinSetGetPullTest()
[all …]
Di3c_test.c39 static int32_t I3cTestGetTestConfig(struct I3cTestConfig *config) in I3cTestGetTestConfig() argument
54 reply = HdfSbufObtain(sizeof(*config) + sizeof(uint64_t)); in I3cTestGetTestConfig()
73 if (len != sizeof(*config)) { in I3cTestGetTestConfig()
74 HDF_LOGE("I3cTestGetTestConfig: config size:%zu, read size:%u!", sizeof(*config), len); in I3cTestGetTestConfig()
79 if (memcpy_s(config, sizeof(*config), buf, sizeof(*config)) != EOK) { in I3cTestGetTestConfig()
101 ret = I3cTestGetTestConfig(&tester.config); in I3cTesterGet()
106 tester.handle = I3cOpen(tester.config.busId); in I3cTesterGet()
108 HDF_LOGE("I3cTesterGet: open i3c controller: %hu fail!", tester.config.busId); in I3cTesterGet()
118 struct I3cTestConfig *config = &tester->config; in I3cTestMallocBuf() local
121 g_buf = OsalMemCalloc(config->bufSize); in I3cTestMallocBuf()
[all …]
Duart_test.c20 static int32_t UartTestGetConfig(struct UartTestConfig *config) in UartTestGetConfig() argument
48 if (!HdfSbufReadUint32(reply, &config->port)) { in UartTestGetConfig()
53 if (!HdfSbufReadUint32(reply, &config->len)) { in UartTestGetConfig()
65 if (len != config->len) { in UartTestGetConfig()
66 HDF_LOGE("UartTestGetConfig: config len:%u, read size:%u!", config->len, len); in UartTestGetConfig()
70 config->wbuf = NULL; in UartTestGetConfig()
71 config->wbuf = (uint8_t *)OsalMemCalloc(len); in UartTestGetConfig()
72 if (config->wbuf == NULL) { in UartTestGetConfig()
77 config->rbuf = NULL; in UartTestGetConfig()
78 config->rbuf = (uint8_t *)OsalMemCalloc(len); in UartTestGetConfig()
[all …]
Drtc_test.c23 static int32_t RtcTestGetConfig(struct RtcTestConfig *config) in RtcTestGetConfig() argument
59 if (len != sizeof(*config)) { in RtcTestGetConfig()
60 HDF_LOGE("RtcTestGetConfig: config size:%zu, read size:%u!", sizeof(*config), len); in RtcTestGetConfig()
66 if (memcpy_s(config, sizeof(*config), buf, sizeof(*config)) != EOK) { in RtcTestGetConfig()
83 ret = RtcTestGetConfig(&tester.config); in RtcTesterGet()
144 OsalMSleep(tester->config.writeWaitMillisecond); in TestReadWriteTime()
165 tester->time.year = tester->config.year; in RtcReadWriteTimeTest()
166 tester->time.month = tester->config.month; in RtcReadWriteTimeTest()
167 tester->time.day = tester->config.day; in RtcReadWriteTimeTest()
168 tester->time.hour = tester->config.hour; in RtcReadWriteTimeTest()
[all …]
Drtc_driver_test.c43 static int32_t RtcTestReadConfig(struct RtcTestConfig *config, const struct DeviceResourceNode *nod… in RtcTestReadConfig() argument
53 ret = drsOps->GetUint32(node, "time", &config->time, 0); in RtcTestReadConfig()
58 ret = drsOps->GetUint32(node, "maxYear", &config->maxYear, 0); in RtcTestReadConfig()
63 ret = drsOps->GetUint32(node, "year", &config->year, 0); in RtcTestReadConfig()
68 ret = drsOps->GetUint32(node, "month", &config->month, 0); in RtcTestReadConfig()
73 ret = drsOps->GetUint32(node, "day", &config->day, 0); in RtcTestReadConfig()
78 ret = drsOps->GetUint32(node, "hour", &config->hour, 0); in RtcTestReadConfig()
83 ret = drsOps->GetUint32(node, "minute", &config->minute, 0); in RtcTestReadConfig()
88 ret = drsOps->GetUint32(node, "second", &config->second, 0); in RtcTestReadConfig()
93 ret = drsOps->GetUint32(node, "frequency", &config->frequency, 0); in RtcTestReadConfig()
[all …]
Duart_driver_test.c46 static int32_t UartTestReadConfig(struct UartTestConfig *config, const struct DeviceResourceNode *n… in UartTestReadConfig() argument
58 ret = drsOps->GetUint32(node, "port", &config->port, 0); in UartTestReadConfig()
63 ret = drsOps->GetUint32(node, "len", &config->len, 0); in UartTestReadConfig()
68 config->wbuf = (uint8_t *)OsalMemCalloc(config->len); in UartTestReadConfig()
69 if (config->wbuf == NULL) { in UartTestReadConfig()
73 tmp = (uint32_t *)OsalMemCalloc(config->len * sizeof(uint32_t)); in UartTestReadConfig()
76 OsalMemFree(config->wbuf); in UartTestReadConfig()
79 ret = drsOps->GetUint32Array(node, "wbuf", tmp, config->len, 0); in UartTestReadConfig()
82 OsalMemFree(config->wbuf); in UartTestReadConfig()
86 for (i = 0; i < config->len; i++) { in UartTestReadConfig()
[all …]
Dspi_test.c25 static int32_t SpiTestGetConfig(struct SpiTestConfig *config) in SpiTestGetConfig() argument
66 if (memcpy_s(config, sizeof(*config), cfg, sizeof(*cfg)) != EOK) { in SpiTestGetConfig()
78 if (len != config->len) { in SpiTestGetConfig()
79 HDF_LOGE("SpiTestGetConfig: buffer size:%zu, read size:%u!", config->len, len); in SpiTestGetConfig()
84 config->wbuf = NULL; in SpiTestGetConfig()
85 config->wbuf = (uint8_t *)OsalMemCalloc(config->len); in SpiTestGetConfig()
86 if (config->wbuf == NULL) { in SpiTestGetConfig()
92 if (memcpy_s(config->wbuf, config->len, buf, len) != EOK) { in SpiTestGetConfig()
111 ret = SpiTestGetConfig(&tester.config); in SpiTesterGet()
117 tester.config.rbuf = (uint8_t *)OsalMemCalloc(tester.config.len); in SpiTesterGet()
[all …]
Dpwm_test.c22 static int32_t PwmTesterGetConfig(struct PwmTestConfig *config) in PwmTesterGetConfig() argument
36 reply = HdfSbufObtain(sizeof(*config) + sizeof(uint64_t)); in PwmTesterGetConfig()
58 if (len != sizeof(*config)) { in PwmTesterGetConfig()
59 HDF_LOGE("PwmTesterGetConfig: config size:%zu, read size:%u!", sizeof(*config), len); in PwmTesterGetConfig()
65 if (memcpy_s(config, sizeof(*config), buf, sizeof(*config)) != EOK) { in PwmTesterGetConfig()
83 ret = PwmTesterGetConfig(&tester.config); in PwmTesterGet()
89 tester.handle = PwmOpen(tester.config.num); in PwmTesterGet()
91 HDF_LOGE("PwmTesterGet: open pwm device:%u fail!", tester.config.num); in PwmTesterGet()
115 number = tester->config.cfg.number; in PwmSetGetConfigTest()
116 tester->config.cfg.number = ((number > 0) ? 0 : TEST_WAVES_NUMBER); in PwmSetGetConfigTest()
[all …]
Dadc_test.c27 static int32_t AdcTestGetConfig(struct AdcTestConfig *config) in AdcTestGetConfig() argument
43 reply = HdfSbufObtain(sizeof(*config) + sizeof(uint64_t)); in AdcTestGetConfig()
62 if (len != sizeof(*config)) { in AdcTestGetConfig()
63 HDF_LOGE("AdcTestGetConfig: config size:%zu, read size:%u!", sizeof(*config), len); in AdcTestGetConfig()
68 if (memcpy_s(config, sizeof(*config), buf, sizeof(*config)) != EOK) { in AdcTestGetConfig()
91 ret = AdcTestGetConfig(&tester.config); in AdcTesterGet()
96 tester.handle = AdcOpen(tester.config.devNum); in AdcTesterGet()
98 HDF_LOGE("AdcTesterGet: open adc device:%u fail!", tester.config.devNum); in AdcTesterGet()
121 ret = AdcRead(tester->handle, tester->config.channel, &value[i]); in AdcTestRead()
122 if (ret != HDF_SUCCESS || value[i] >= (1U << tester->config.dataWidth)) { in AdcTestRead()
[all …]
Dgpio_driver_test.c41 static int32_t GpioReadNameTestInfos(struct GpioTestConfig *config, const struct DeviceResourceNode… in GpioReadNameTestInfos() argument
53 if (strcpy_s(config->testNameOne, NAME_SIZE_MAX, tempName) != EOK) { in GpioReadNameTestInfos()
64 if (strcpy_s(config->testNameTwo, NAME_SIZE_MAX, tempName) != EOK) { in GpioReadNameTestInfos()
72 static int32_t GpioTestReadConfig(struct GpioTestConfig *config, const struct DeviceResourceNode *n… in GpioTestReadConfig() argument
89 config->gpio = (uint16_t)tmp; in GpioTestReadConfig()
96 config->gpioTestTwo = (uint16_t)tmp; in GpioTestReadConfig()
103 config->gpioIrq = (uint16_t)tmp; in GpioTestReadConfig()
108 config->testUserApi = 0; in GpioTestReadConfig()
110 config->testUserApi = (uint16_t)tmp; in GpioTestReadConfig()
112 ret = GpioReadNameTestInfos(config, node, drsOps); in GpioTestReadConfig()
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c40 void ReleaseSensorAllRegConfig(struct SensorCfgData *config) in ReleaseSensorAllRegConfig() argument
44 if (config == NULL || config->regCfgGroup == NULL) { in ReleaseSensorAllRegConfig()
49 if (config->regCfgGroup[index] != NULL) { in ReleaseSensorAllRegConfig()
50 if (config->regCfgGroup[index]->regCfgItem != NULL) { in ReleaseSensorAllRegConfig()
51 OsalMemFree(config->regCfgGroup[index]->regCfgItem); in ReleaseSensorAllRegConfig()
52 config->regCfgGroup[index]->regCfgItem = NULL; in ReleaseSensorAllRegConfig()
54 OsalMemFree(config->regCfgGroup[index]); in ReleaseSensorAllRegConfig()
55 config->regCfgGroup[index] = NULL; in ReleaseSensorAllRegConfig()
158 int32_t ParseSensorRegConfig(struct SensorCfgData *config) in ParseSensorRegConfig() argument
165 CHECK_NULL_PTR_RETURN_VALUE(config->root, HDF_ERR_INVALID_PARAM); in ParseSensorRegConfig()
[all …]
/drivers/hdf_core/framework/model/input/driver/
Dinput_config_parser.c26 int32_t ParseInfraredConfig(const struct DeviceResourceNode *node, InfraredCfg *config) in ParseInfraredConfig() argument
30 if (node == NULL || config == NULL) { in ParseInfraredConfig()
42 ret = parser->GetString(infraredNode, "infraredName", &config->infraredName, NULL); in ParseInfraredConfig()
44 ret = parser->GetUint8(infraredNode, "inputType", &config->devType, 0); in ParseInfraredConfig()
46 ret = parser->GetUint16(infraredNode, "gpioNum", &config->gpioNum, 0); in ParseInfraredConfig()
48 ret = parser->GetUint16(infraredNode, "irqFlag", &config->irqFlag, 0); in ParseInfraredConfig()
54 int32_t ParseKeyConfig(const struct DeviceResourceNode *node, KeyChipCfg *config) in ParseKeyConfig() argument
58 if (node == NULL || config == NULL) { in ParseKeyConfig()
70 ret = parser->GetString(keyNode, "keyName", &config->keyName, NULL); in ParseKeyConfig()
72 ret = parser->GetUint8(keyNode, "inputType", &config->devType, 0); in ParseKeyConfig()
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/
DKconfig1 config DRIVERS_HDF_PLATFORM
8 config DRIVERS_HDF_PLATFORM_MIPI_DSI
15 config DRIVERS_HDF_PLATFORM_MIPI_CSI
22 config DRIVERS_HDF_PLATFORM_GPIO
29 config DRIVERS_HDF_PLATFORM_I2C
36 config USER_I2C_SUPPORT
43 config DRIVERS_HDF_PLATFORM_WATCHDOG
50 config DRIVERS_HDF_PLATFORM_PWM
56 config DRIVERS_HDF_PLATFORM_UART
62 config DRIVERS_HDF_PLATFORM_SDIO
[all …]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dpwm_virtual.c45 int32_t VirtualPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in VirtualPwmSetConfig() argument
47 if (pwm == NULL || config == NULL) { in VirtualPwmSetConfig()
51 if (config->polarity != PWM_NORMAL_POLARITY && config->polarity != PWM_INVERTED_POLARITY) { in VirtualPwmSetConfig()
52 HDF_LOGE("VirtualPwmSetConfig: polarity %hhu is invalid!", config->polarity); in VirtualPwmSetConfig()
55 if (config->period < PWM_MIN_PERIOD) { in VirtualPwmSetConfig()
56 …HDF_LOGE("VirtualPwmSetConfig: period %u is not support, min period %d!", config->period, PWM_MIN_… in VirtualPwmSetConfig()
59 if (config->duty < 1 || config->duty > config->period) { in VirtualPwmSetConfig()
61 config->duty, config->period); in VirtualPwmSetConfig()
64 pwm->cfg = *config; in VirtualPwmSetConfig()
/drivers/hdf_core/adapter/khdf/linux/model/sensor/
DKconfig12 config DRIVERS_HDF_SENSOR
19 config DRIVERS_HDF_SENSOR_ACCEL
25 config DRIVERS_HDF_SENSOR_ACCEL_BMI160
31 config DRIVERS_HDF_SENSOR_ACCEL_MXC6655XA
37 config DRIVERS_HDF_SENSOR_PPG
43 config DRIVERS_HDF_SENSOR_PPG_CS1262
49 config DRIVERS_HDF_SENSOR_ALS
55 config DRIVERS_HDF_SENSOR_ALS_BH1745
61 config DRIVERS_HDF_SENSOR_ALS_BH1750
67 config DRIVERS_HDF_SENSOR_GRAVITY
[all …]
/drivers/external_device_manager/frameworks/ddk/usb/
Dusb_config_desc_parser.cpp418 void RawClearConfiguration(UsbDdkConfigDescriptor &config) in RawClearConfiguration() argument
421 for (i = 0; i < config.configDescriptor.bNumInterfaces; i++) { in RawClearConfiguration()
422 ClearInterface(config.interface[i]); in RawClearConfiguration()
423 delete[] config.interface; in RawClearConfiguration()
424 config.interface = nullptr; in RawClearConfiguration()
427 if (config.extra != nullptr) { in RawClearConfiguration()
428 delete[] (config.extra); in RawClearConfiguration()
429 config.extra = nullptr; in RawClearConfiguration()
434 …UsbDdkConfigDescriptor &config, const uint8_t *buffer, int32_t size, std::vector<uint8_t> &interfa… in ParseConfigurationDes() argument
440 ret = FillExtraDescriptor(&config.extra, &config.extraLength, buffer, len); in ParseConfigurationDes()
[all …]
/drivers/hdf_core/adapter/khdf/linux/model/audio/
DKconfig1 config DRIVERS_HDF_AUDIO
8 config DRIVERS_HDF_AUDIO_HDMI
15 config DRIVERS_HDF_AUDIO_USB
22 config DRIVERS_HDF_AUDIO_HI3516CODEC
29 config DRIVERS_HDF_AUDIO_RK3568
36 config DRIVERS_HDF_AUDIO_RK3566
43 config DRIVERS_HDF_AUDIO_ANA_HEADSET
52 config DRIVERS_HDF_AUDIO_RK3588
59 config DRIVERS_HDF_AUDIO_ANA_HEADSET_RK3566
68 config DRIVERS_HDF_AUDIO_CAP_REPORT
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
Dpwm_adapter.c58 static int32_t HdfPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in HdfPwmSetConfig() argument
63 if (pwm == NULL || pwm->priv == NULL || config == NULL) { in HdfPwmSetConfig()
68 state.duty_cycle = config->duty; in HdfPwmSetConfig()
69 state.enabled = (config->status == PWM_ENABLE_STATUS) ? true : false; in HdfPwmSetConfig()
70 state.period = config->period; in HdfPwmSetConfig()
71 state.polarity = config->polarity; in HdfPwmSetConfig()
73 config->number, config->period, config->duty, config->polarity, config->status); in HdfPwmSetConfig()
/drivers/hdf_core/framework/test/unittest/platform/config/
Dcan_test_config.c40 static void CanTestSetDftConfig(struct CanTestConfig *config) in CanTestSetDftConfig() argument
42 config->busNum = CAN_TEST_BUS_NUM; in CanTestSetDftConfig()
43 config->bitRate = CAN_TEST_BIT_RATE; in CanTestSetDftConfig()
44 config->workMode = CAN_TEST_WORK_MODE; in CanTestSetDftConfig()
47 static int32_t CanTestReadConfig(struct CanTestConfig *config, const struct DeviceResourceNode *nod… in CanTestReadConfig() argument
58 ret = drsOps->GetUint16(node, "bus_num", &config->busNum, CAN_TEST_BUS_NUM); in CanTestReadConfig()
63 ret = drsOps->GetUint32(node, "bit_rate", &config->bitRate, CAN_TEST_BIT_RATE); in CanTestReadConfig()
68 ret = drsOps->GetUint8(node, "work_mode", &config->workMode, CAN_TEST_WORK_MODE); in CanTestReadConfig()

12345678910>>...27