no-OS
Toggle main menu visibility
Main Page
Related Pages
Structures
Structure List
Structure Index
Files
File List
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
drivers
platform
mbed
mbed_pwm.h
Go to the documentation of this file.
1
/***************************************************************************/
31
32
#ifndef MBED_PWM_H
33
#define MBED_PWM_H
34
35
// Platform support needs to be C-compatible to work with other drivers
36
#ifdef __cplusplus
37
extern
"C"
38
{
39
#endif
40
41
#include <stdio.h>
42
43
struct
mbed_pwm_init_param
{
44
uint16_t
pwm_pin
;
// PWM pin number
45
};
43
struct
mbed_pwm_init_param
{
…
};
46
47
struct
mbed_pwm_desc
{
48
void
*
pwm_obj
;
// Mbed PWM instance/object
49
};
47
struct
mbed_pwm_desc
{
…
};
50
54
extern
const
struct
no_os_pwm_platform_ops
mbed_pwm_ops
;
55
56
#ifdef __cplusplus
// Closing extern c
57
}
58
#endif
59
60
#endif
/* MBED_PWM_H */
mbed_pwm_ops
const struct no_os_pwm_platform_ops mbed_pwm_ops
Mbed specific PWM platform ops structure.
mbed_pwm_desc
Definition
mbed_pwm.h:47
mbed_pwm_desc::pwm_obj
void * pwm_obj
Definition
mbed_pwm.h:48
mbed_pwm_init_param
Definition
mbed_pwm.h:43
mbed_pwm_init_param::pwm_pin
uint16_t pwm_pin
Definition
mbed_pwm.h:44
no_os_pwm_platform_ops
Structure holding PWM function pointers that point to the platform specific function.
Definition
no_os_pwm.h:115
Generated by
1.13.2