no-OS
mbed_pwm.h
Go to the documentation of this file.
1 /***************************************************************************/
38 #ifndef MBED_PWM_H
39 #define MBED_PWM_H
40 
41 // Platform support needs to be C-compatible to work with other drivers
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 /******************************************************************************/
48 /***************************** Include Files **********************************/
49 /******************************************************************************/
50 
51 #include <stdio.h>
52 
53 /******************************************************************************/
54 /********************** Variables and User defined data types *****************/
55 /******************************************************************************/
56 
58  uint16_t pwm_pin; // PWM pin number
59 };
60 
61 struct mbed_pwm_desc {
62  void *pwm_obj; // Mbed PWM instance/object
63 };
64 
68 extern const struct no_os_pwm_platform_ops mbed_pwm_ops;
69 
70 #ifdef __cplusplus // Closing extern c
71 }
72 #endif
73 
74 #endif /* MBED_PWM_H */
mbed_pwm_init_param::pwm_pin
uint16_t pwm_pin
Definition: mbed_pwm.h:58
mbed_pwm_init_param
Definition: mbed_pwm.h:57
no_os_pwm_platform_ops
Structure holding PWM function pointers that point to the platform specific function.
Definition: no_os_pwm.h:131
mbed_pwm_desc
Definition: mbed_pwm.h:61
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:62