no-OS
mbed_pwm.h
Go to the documentation of this file.
1 /***************************************************************************/
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 /******************************************************************************/
42 /***************************** Include Files **********************************/
43 /******************************************************************************/
44 
45 #include <stdio.h>
46 
47 /******************************************************************************/
48 /********************** Variables and User defined data types *****************/
49 /******************************************************************************/
50 
52  uint16_t pwm_pin; // PWM pin number
53 };
54 
55 struct mbed_pwm_desc {
56  void *pwm_obj; // Mbed PWM instance/object
57 };
58 
62 extern const struct no_os_pwm_platform_ops mbed_pwm_ops;
63 
64 #ifdef __cplusplus // Closing extern c
65 }
66 #endif
67 
68 #endif /* MBED_PWM_H */
mbed_pwm_init_param::pwm_pin
uint16_t pwm_pin
Definition: mbed_pwm.h:52
mbed_pwm_init_param
Definition: mbed_pwm.h:51
no_os_pwm_platform_ops
Structure holding PWM function pointers that point to the platform specific function.
Definition: no_os_pwm.h:125
mbed_pwm_desc
Definition: mbed_pwm.h:55
mbed_pwm_ops
const struct no_os_pwm_platform_ops mbed_pwm_ops
Mbed specific PWM platform ops structure.
mbed_pwm_desc::pwm_obj
void * pwm_obj
Definition: mbed_pwm.h:56