/drivers/hdf_core/adapter/khdf/linux/platform/pwm/ |
D | pwm_hi35xx_linux.c | 57 if (state->period < PWM_MIN_PERIOD) { in Hi35xxPwmApply() 58 …HDF_LOGE("Hi35xxPwmApply: period %llu is not support, min period %d!", state->period, PWM_MIN_PERI… in Hi35xxPwmApply() 61 if (state->duty_cycle < 1 || state->duty_cycle > state->period) { in Hi35xxPwmApply() 63 state->duty_cycle, state->period); in Hi35xxPwmApply() 73 if (pwm->state.period != state->period) { in Hi35xxPwmApply() 74 HiPwmSetPeriod(reg, state->period); in Hi35xxPwmApply() 75 …("Hi35xxPwmApply: [HiPwmSetPeriod] done, period: %llu -> %llu!", pwm->state.period, state->period); in Hi35xxPwmApply() 87 state->period, state->duty_cycle, state->polarity, state->enabled); in Hi35xxPwmApply() 103 state->period = reg->cfg0 * PWM_CLK_PERIOD; in Hi35xxGetState() 109 state->period, state->duty_cycle, state->polarity, state->enabled); in Hi35xxGetState()
|
D | pwm_adapter.c | 40 pwm->cfg.period = device->state.period; in HdfPwmOpen() 70 state.period = config->period; in HdfPwmSetConfig() 73 config->number, config->period, config->duty, config->polarity, config->status); in HdfPwmSetConfig()
|
D | pwm_hi35xx.h | 96 static inline void HiPwmSetPeriod(struct HiPwmRegs *reg, uint32_t period) in HiPwmSetPeriod() argument 101 reg->cfg0 = period / PWM_CLK_PERIOD; in HiPwmSetPeriod()
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | pwm_virtual.c | 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() 92 virtual->dev.cfg.period = PWM_DEFAULT_PERIOD; in VirtualPwmProbe() 102 virtual->dev.cfg.number, virtual->dev.cfg.period, virtual->dev.cfg.duty, in VirtualPwmProbe()
|
/drivers/hdf_core/framework/support/platform/src/pwm/ |
D | pwm_if.c | 74 int32_t PwmSetPeriod(DevHandle handle, uint32_t period) in PwmSetPeriod() argument 84 curValue = config.period; in PwmSetPeriod() 85 config.period = period; in PwmSetPeriod() 88 HDF_LOGI("PwmSetPeriod: success. period: %d -> %d!", curValue, config.period); in PwmSetPeriod()
|
D | pwm_if_u.c | 209 curValue = nowCfg.period; in PwmConfigTransSet() 210 nowCfg.period = config->period; in PwmConfigTransSet() 237 int32_t PwmSetPeriod(DevHandle handle, uint32_t period) in PwmSetPeriod() argument 250 config.period = period; in PwmSetPeriod()
|
/drivers/hdf_core/framework/include/platform/ |
D | pwm_if.h | 93 uint32_t period; /**< PWM period, in nanoseconds */ member 141 int32_t PwmSetPeriod(DevHandle handle, uint32_t period);
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | pwm_test.c | 151 uint32_t period; in PwmSetPeriodTest() local 153 period = tester->config.cfg.period + tester->originCfg.period; in PwmSetPeriodTest() 154 ret = PwmSetPeriod(tester->handle, period); in PwmSetPeriodTest() 166 if (cfg.period != period) { in PwmSetPeriodTest() 167 HDF_LOGE("PwmSetPeriodTest: fail: cfg.period:%u period:%u!", cfg.period, period); in PwmSetPeriodTest()
|
D | pwm_driver_test.c | 63 ret = drsOps->GetUint32(node, "period", &(config->cfg.period), 0); in PwmTestReadConfig()
|
/drivers/hdf_core/adapter/platform/pwm/ |
D | pwm_stm32f4xx.c | 72 uint32_t period; member 407 uint32_t period = 0; local 411 if (config->period != 0) { 412 freq = (uint32_t)(PER_SEC_NSEC / config->period); 421 period = (uint32_t)(realHz / freq); 427 if (period != 0) { 428 duty = (uint32_t)(((double)config->duty / (double)config->period) * period); 434 arg->period = period; 448 …pwmCfg->timInitStruct.Autoreload = arg->period - 1; // if period is 1000 20KHz/1000=20Hz,period is… 522 if (pwm == NULL || config == NULL || (config->period > PER_SEC_NSEC)) {
|
D | pwm_wm.c | 51 pwmCfg->period = config->period; in PwmDevSetConfig()
|
D | pwm_bes.c | 284 if (pwm == NULL || config == NULL || (config->period > UNTIL_NAN0SECONDS)) { 294 pwmCfg->freq = UNTIL_NAN0SECONDS / config->period; 295 pwmCfg->ratio = config->duty * PERCENT / config->period;
|
/drivers/peripheral/audio/test/systemtest/adm/audio_adm_interface/src/ |
D | audio_adm_interface_test.cpp | 155 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025, 190 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025, 772 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 11025, 791 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 22050, 810 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 4096, .rate = 24000, 829 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 48190, 848 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 44100, 867 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 8190, 886 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 32000, 905 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 50000, [all …]
|
/drivers/peripheral/audio/supportlibs/interfaces/include/ |
D | audio_if_lib_common.h | 31 uint32_t period; member
|
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/ |
D | audio_common_vdi.c | 49 vdiAttrs->period = attrs->period; in AudioCommonAttrsToVdiAttrsVdi() 400 vdiAttrs->period = attrs->period; in AudioCommonSampleAttrToVdiSampleAttrVdi() 424 attrs->period = vdiAttrs->period; in AudioCommonVdiSampleAttrToSampleAttrVdi()
|
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/ |
D | audio_common_vendor.c | 50 hwiAttrs->period = attrs->period; in AudioHwiCommonAttrsToHwiAttrs() 405 hwiAttrs->period = attrs->period; in AudioHwiCommonSampleAttrToHwiSampleAttr() 429 attrs->period = hwiAttrs->period; in AudioHwiCommonHwiSampleAttrToSampleAttr()
|
/drivers/hdf_core/framework/model/display/driver/backlight/ |
D | pwm_bl.c | 54 duty = (brightness * blPwmDev->config.period) / blPwmDev->props.maxBrightness; in BlPwmUpdateBrightness() 102 ret = parser->GetUint32(node, "pwmMaxPeriod", &blPwmDev->config.period, 0); in ParseBlPwmCfg()
|
/drivers/interface/light/v1_0/ |
D | LightTypes.idl | 90 …he parameters include the blinking mode and the on and off time for the light in a blinking period. 96 int onTime; /** Duration (in ms) for which the light is on in a blinking period. */ 97 int offTime; /** Duration (in ms) for which the light is off in a blinking period. */
|
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/ |
D | audio_adm_common.h | 79 uint32_t period; member
|
/drivers/peripheral/bluetooth/audio/interfaces/include/ |
D | audio_types.h | 184 uint32_t period; /**< Audio sampling period */ member
|
/drivers/hdf_core/framework/model/audio/common/src/ |
D | audio_platform_base.c | 195 if (param->period < MIN_PERIOD_SIZE || param->period > MAX_PERIOD_SIZE) { in AudioSetRenderBufInfo() 196 AUDIO_DRIVER_LOG_ERR("periodSize is invalid %d.", param->period); in AudioSetRenderBufInfo() 199 data->renderBufInfo.periodSize = param->period * data->renderPcmInfo.bitWidth * in AudioSetRenderBufInfo() 221 if (param->period < MIN_PERIOD_SIZE || param->period > MAX_PERIOD_SIZE) { in AudioSetCaptureBufInfo() 222 AUDIO_DRIVER_LOG_ERR("periodSize is invalid %d.", param->period); in AudioSetCaptureBufInfo() 225 data->captureBufInfo.periodSize = param->period * data->capturePcmInfo.bitWidth * in AudioSetCaptureBufInfo()
|
/drivers/hdf_core/framework/model/audio/common/include/ |
D | audio_platform_base.h | 42 uint32_t period; /* not used */ member
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/ |
D | audio_proxy_common.cpp | 124 if (!HdfSbufWriteUint32(data, attrs->period)) { in AudioProxyWriteSampleAttributes() 174 if (!HdfSbufReadUint32(reply, &attrs->period)) { in AudioProxyReadSapmleAttrbutes()
|
/drivers/peripheral/light/ |
D | README.md | 83 effect.flashEffect.onTime = g_onTime; // Light on time in a blinking period, in ms 84 effect.flashEffect.offTime = g_offTime; // Light off time in a blinking period, in ms
|
/drivers/interface/sensor/v1_1/ |
D | SensorTypes.idl | 60 long minDelay; /**< Minimum sample period allowed in microseconds */ 61 long maxDelay; /**< Maxmum sample period allowed in microseconds */
|