/ohos5.0/drivers/hdf_core/framework/support/platform/src/pwm/ |
H A D | pwm_if_u.c | 198 struct PwmConfig nowCfg; in PwmConfigTransSet() 239 struct PwmConfig config; in PwmSetPeriod() 246 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetPeriod() 261 struct PwmConfig config; in PwmSetDuty() 267 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetDuty() 282 struct PwmConfig config; in PwmSetPolarity() 289 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetPolarity() 304 struct PwmConfig config; in PwmEnable() 311 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmEnable() 326 struct PwmConfig config; in PwmDisable() [all …]
|
H A D | pwm_if.c | 76 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 D | pwm_core.c | 66 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()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/pwm/ |
H A D | pwm_core.h | 27 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);
|
/ohos5.0/drivers/hdf_core/framework/include/platform/ |
H A D | pwm_if.h | 91 struct PwmConfig { struct 201 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config); 214 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config);
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | pwm_test.c | 112 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()
|
H A D | pwm_test.h | 34 struct PwmConfig cfg; 39 struct PwmConfig originCfg;
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-pwm-des.md | 55 **表 1** PwmConfig结构体介绍 76 | int32_t PwmSetConfig(DevHandle handle, struct PwmConfig \*config) | 设置PWM设备参数 | 77 | int32_t PwmGetConfig(DevHandle handle, struct PwmConfig \*config) | 获取PWM设备参数 | 271 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config); 286 struct PwmConfig pcfg; 304 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config); 319 struct PwmConfig pcfg; 362 struct PwmConfig pcfg;
|
H A D | driver-platform-pwm-develop.md | 49 int32_t (*setConfig)(struct PwmDev *pwm, struct PwmConfig *config); 203 struct PwmConfig cfg; // 设备属性结构体,相关定义见下。 211 struct PwmConfig { // PWM设备属性
|
/ohos5.0/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_stm32f4xx.c | 62 } 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 PwmResou… 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 D | pwm_wm.c | 25 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 D | pwm_bes.h | 31 struct PwmConfig *cfg;
|
H A D | pwm_bes.c | 49 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config); 278 static int32_t PwmDevSetConfig(struct PwmDev *pwm, struct PwmConfig *config)
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-platform-pwm-des.md | 47 **Table 1** describes the **PwmConfig** structure, which defines the PWM device attributes. **Table… 49 **Table 1** PwmConfig structure 70 | int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config) | Sets PWM device parameters. … 71 | int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config) | Obtains PWM device parameters.… 266 int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config); 281 struct PwmConfig pcfg; 299 int32_t PwmGetConfig(DevHandle handle, struct PwmConfig *config); 314 struct PwmConfig pcfg; 348 struct PwmConfig pcfg;
|
H A D | driver-platform-pwm-develop.md | 46 int32_t (*setConfig)(struct PwmDev *pwm, struct PwmConfig *config); 181 …struct PwmConfig cfg; // Device attribute structure. For details, see the following de… 189 struct PwmConfig { // PWM device attributes.
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/pwm/ |
H A D | pwm_adapter.c | 58 static int32_t HdfPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in HdfPwmSetConfig()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | pwm_virtual.c | 45 int32_t VirtualPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config) in VirtualPwmSetConfig()
|
/ohos5.0/drivers/hdf_core/framework/model/display/driver/backlight/ |
H A D | pwm_bl.c | 32 struct PwmConfig config;
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | porting-stm32f407-on-minisystem-eth.md | 795 3. 设置PWM设备参数:int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *config);
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | porting-stm32f407-on-minisystem-eth.md | 793 …3. PWM device parameter set function: int32_t PwmSetConfig(DevHandle handle, struct PwmConfig *con…
|