Home
last modified time | relevance | path

Searched refs:PwmConfig (Results 1 - 14 of 14) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/pwm/
H A Dpwm_if_u.c100 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config) in PwmSetConfig()
122 if (!HdfSbufWriteBuffer(buf, config, sizeof(struct PwmConfig))) { in PwmSetConfig()
137 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config) in PwmGetConfig()
174 if (rLen != sizeof(struct PwmConfig)) { in PwmGetConfig()
175 HDF_LOGE("PwmGetConfig: sbuf read buffer len error %u != %zu", rLen, sizeof(struct PwmConfig)); in PwmGetConfig()
179 if (memcpy_s(config, sizeof(struct PwmConfig), rBuf, rLen) != EOK) { in PwmGetConfig()
196 static int32_t PwmConfigTransSet(DevHandle handle, enum PwmSetConfigType type, struct PwmConfig *config) in PwmConfigTransSet()
198 struct PwmConfig nowCfg; in PwmConfigTransSet()
239 struct PwmConfig config; in PwmSetPeriod()
246 if (memset_s(&config, sizeof(struct PwmConfig), in PwmSetPeriod()
[all...]
H A Dpwm_if.c76 struct PwmConfig config; in PwmSetPeriod()
95 struct PwmConfig config; in PwmSetDuty()
114 struct PwmConfig config; in PwmSetPolarity()
133 struct PwmConfig config; in PwmEnable()
152 struct PwmConfig config; in PwmDisable()
169 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config) in PwmSetConfig()
190 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config) in PwmGetConfig()
H A Dpwm_core.c66 int32_t PwmDeviceSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in PwmDeviceSetConfig()
97 int32_t PwmDeviceGetConfig(struct PwmDev *pwm, struct PwmConfig *config) in PwmDeviceGetConfig()
135 struct PwmConfig *config = NULL; in PwmUserSetConfig()
146 if ((config == NULL) || (size != sizeof(struct PwmConfig))) { in PwmUserSetConfig()
156 struct PwmConfig config; in PwmUserGetConfig()
/drivers/hdf_core/framework/support/platform/include/pwm/
H A Dpwm_core.h27 int32_t (*setConfig)(struct PwmDev *pwm, struct PwmConfig *config);
35 struct PwmConfig cfg;
45 int32_t PwmDeviceSetConfig(struct PwmDev *pwm, struct PwmConfig *config);
46 int32_t PwmDeviceGetConfig(struct PwmDev *pwm, struct PwmConfig *config);
/drivers/hdf_core/framework/include/platform/
H A Dpwm_if.h91 struct PwmConfig { struct
194 * @param config Indicates the pointer to the {@link PwmConfig} structure that
201 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config);
207 * @param config Indicates the pointer to the {@link PwmConfig} structure that contains
214 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config);
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dpwm_test.h34 struct PwmConfig cfg;
39 struct PwmConfig originCfg;
H A Dpwm_test.c112 struct PwmConfig cfg = {0}; in PwmSetGetConfigTest()
150 struct PwmConfig cfg = {0}; in PwmSetPeriodTest()
177 struct PwmConfig cfg = {0}; in PwmSetDutyTest()
204 struct PwmConfig cfg = {0}; in PwmSetPolarityTest()
239 struct PwmConfig cfg = {0}; in PwmEnableTest()
271 struct PwmConfig cfg = {0}; in PwmDisableTest()
305 struct PwmConfig cfg = {0}; in PwmReliabilityTest()
345 struct PwmConfig cfg = {0}; in PwmIfPerformanceTest()
/drivers/hdf_core/adapter/platform/pwm/
H A Dpwm_stm32f4xx.c62 } PwmConfig; typedef
66 PwmConfig stPwmCfg;
67 struct PwmConfig *cfg;
137 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config);
399 static int32_t InitPwmFreqAndPeriod(const struct PwmConfig *config, PwmFreqArg* arg, const PwmResource *resource)
440 static void InitTimPwm(const PwmFreqArg* arg, const struct PwmConfig *config,
441 PwmConfig *pwmCfg, const PwmResource *resource)
514 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config)
517 PwmConfig *pwmCfg = NULL;
H A Dpwm_bes.h31 struct PwmConfig *cfg;
H A Dpwm_wm.c25 struct PwmConfig *cfg;
29 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config);
35 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in PwmDevSetConfig()
H A Dpwm_bes.c49 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config);
278 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config)
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
H A Dpwm_adapter.c58 static int32_t HdfPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in HdfPwmSetConfig()
72 HDF_LOGI("HdfPwmSetConfig: set PwmConfig: number %u, period %u, duty %u, polarity %u, enable %u!", in HdfPwmSetConfig()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dpwm_virtual.c45 int32_t VirtualPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in VirtualPwmSetConfig()
101 HDF_LOGI("VirtualPwmProbe: set PwmConfig: number %u, period %u, duty %u, polarity %hhu, enable %hhu!", in VirtualPwmProbe()
/drivers/hdf_core/framework/model/display/driver/backlight/
H A Dpwm_bl.c32 struct PwmConfig config;

Completed in 7 milliseconds