Zephyr API Documentation
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwm_fake.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024, Kickmaker
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_DRIVERS_PWM_PWM_FAKE_H_
14
#define ZEPHYR_INCLUDE_DRIVERS_PWM_PWM_FAKE_H_
15
16
#include <
zephyr/drivers/pwm.h
>
17
#include <zephyr/fff.h>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
43
45
DECLARE_FAKE_VALUE_FUNC(
int
,
fake_pwm_set_cycles
,
const
struct
device
*,
uint32_t
,
uint32_t
,
46
uint32_t
,
pwm_flags_t
);
47
51
52
#ifdef __cplusplus
53
}
54
#endif
55
56
#endif
/* ZEPHYR_INCLUDE_DRIVERS_PWM_PWM_FAKE_H_ */
pwm.h
Main header file for PWM (Pulse Width Modulation) driver API.
fake_pwm_set_cycles
int fake_pwm_set_cycles(const struct device *, uint32_t, uint32_t, uint32_t, pwm_flags_t)
Fake implementation of the pwm_driver_api::set_cycles driver operation.
pwm_flags_t
uint16_t pwm_flags_t
Provides a type to hold PWM configuration flags.
Definition
pwm.h:116
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:525
zephyr
drivers
pwm
pwm_fake.h
Generated on
for Zephyr API Documentation by
1.16.1