Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 72) sorted by relevance

123

/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
Dpwm_hi35xx_linux.c57 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()
Dpwm_adapter.c40 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()
Dpwm_hi35xx.h96 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/
Dpwm_virtual.c55 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/
Dpwm_if.c74 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()
Dpwm_if_u.c209 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/
Dpwm_if.h93 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/
Dpwm_test.c151 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()
Dpwm_driver_test.c63 ret = drsOps->GetUint32(node, "period", &(config->cfg.period), 0); in PwmTestReadConfig()
/drivers/hdf_core/adapter/platform/pwm/
Dpwm_stm32f4xx.c72 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)) {
Dpwm_wm.c51 pwmCfg->period = config->period; in PwmDevSetConfig()
Dpwm_bes.c284 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/
Daudio_adm_interface_test.cpp155 .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/
Daudio_if_lib_common.h31 uint32_t period; member
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
Daudio_common_vdi.c49 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/
Daudio_common_vendor.c50 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/
Dpwm_bl.c54 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/
DLightTypes.idl90 …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/
Daudio_adm_common.h79 uint32_t period; member
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_types.h184 uint32_t period; /**< Audio sampling period */ member
/drivers/hdf_core/framework/model/audio/common/src/
Daudio_platform_base.c195 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/
Daudio_platform_base.h42 uint32_t period; /* not used */ member
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/
Daudio_proxy_common.cpp124 if (!HdfSbufWriteUint32(data, attrs->period)) { in AudioProxyWriteSampleAttributes()
174 if (!HdfSbufReadUint32(reply, &attrs->period)) { in AudioProxyReadSapmleAttrbutes()
/drivers/peripheral/light/
DREADME.md83 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/
DSensorTypes.idl60 long minDelay; /**< Minimum sample period allowed in microseconds */
61 long maxDelay; /**< Maxmum sample period allowed in microseconds */

123