![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <pwm.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this PWM. | |
| uint32_t | pwmid |
| Unique Id of this PWM in the PWM table. | |
| uint32_t | pwmstate |
| PWM state (eg PWM_STATE_ENABLED). | |
| pwm_device_start_proc | devicestart |
| A Device specific DeviceStart method implementing the standard PWM device interface (Mandatory). | |
| pwm_device_stop_proc | devicestop |
| A Device specific DeviceStop method implementing the standard PWM device interface (Mandatory). | |
| pwm_device_write_proc | devicewrite |
| A Device specific DeviceWrite method implementing the standard PWM device interface (Mandatory). | |
| pwm_device_get_gpio_proc | devicegetgpio |
| A Device specific DeviceGetGPIO method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_set_gpio_proc | devicesetgpio |
| A Device specific DeviceSetGPIO method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_get_mode_proc | devicegetmode |
| A Device specific DeviceGetMode method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_set_mode_proc | devicesetmode |
| A Device specific DeviceSetMode method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_get_range_proc | devicegetrange |
| A Device specific DeviceGetRange method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_set_range_proc | devicesetrange |
| A Device specific DeviceSetRange method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_get_frequency_proc | devicegetfrequency |
| A Device specific DeviceGetFrequency method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_set_frequency_proc | devicesetfrequency |
| A Device specific DeviceSetFrequency method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_get_polarity_proc | devicegetpolarity |
| A Device specific DeviceGetPolarity method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_set_polarity_proc | devicesetpolarity |
| A Device specific DeviceSetPolarity method implementing the standard PWM device interface (Or nil if the operation is not supported). | |
| pwm_device_configure_proc | deviceconfigure |
| A Device specific DeviceConfigure method implementing the standard PWM device interface (Mandatory). | |
| pwm_device_get_properties_proc | devicegetproperties |
| A Device specific DeviceGetProperties method implementing the standard PWM device interface (Or nil if the default method is suitable). | |
| uint32_t | getcount |
| uint32_t | setcount |
| uint32_t | writecount |
| uint32_t | configcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| uint32_t | gpio |
| GPIO Pin. | |
| uint32_t | mode |
| Device Mode. | |
| uint32_t | range |
| Device Range. | |
| uint32_t | frequency |
| Clock Frequency. | |
| uint32_t | polarity |
| Output Polarity. | |
| uint32_t | dutyns |
| Duty Nanoseconds. | |
| uint32_t | periodns |
| Period Nanonseconds. | |
| PWM_PROPERTIES | properties |
| Device properties. | |
| PWM_DEVICE * | prev |
| Previous entry in PWM table. | |
| PWM_DEVICE * | next |
| Next entry in PWM table. | |
| DEVICE device |
The Device entry for this PWM.
| uint32_t pwmid |
Unique Id of this PWM in the PWM table.
| uint32_t pwmstate |
PWM state (eg PWM_STATE_ENABLED).
| pwm_device_start_proc devicestart |
A Device specific DeviceStart method implementing the standard PWM device interface (Mandatory).
| pwm_device_stop_proc devicestop |
A Device specific DeviceStop method implementing the standard PWM device interface (Mandatory).
| pwm_device_write_proc devicewrite |
A Device specific DeviceWrite method implementing the standard PWM device interface (Mandatory).
| pwm_device_get_gpio_proc devicegetgpio |
A Device specific DeviceGetGPIO method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_set_gpio_proc devicesetgpio |
A Device specific DeviceSetGPIO method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_get_mode_proc devicegetmode |
A Device specific DeviceGetMode method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_set_mode_proc devicesetmode |
A Device specific DeviceSetMode method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_get_range_proc devicegetrange |
A Device specific DeviceGetRange method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_set_range_proc devicesetrange |
A Device specific DeviceSetRange method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_get_frequency_proc devicegetfrequency |
A Device specific DeviceGetFrequency method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_set_frequency_proc devicesetfrequency |
A Device specific DeviceSetFrequency method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_get_polarity_proc devicegetpolarity |
A Device specific DeviceGetPolarity method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_set_polarity_proc devicesetpolarity |
A Device specific DeviceSetPolarity method implementing the standard PWM device interface (Or nil if the operation is not supported).
| pwm_device_configure_proc deviceconfigure |
A Device specific DeviceConfigure method implementing the standard PWM device interface (Mandatory).
| pwm_device_get_properties_proc devicegetproperties |
A Device specific DeviceGetProperties method implementing the standard PWM device interface (Or nil if the default method is suitable).
| uint32_t getcount |
| uint32_t setcount |
| uint32_t writecount |
| uint32_t configcount |
| MUTEX_HANDLE lock |
Device lock.
| uint32_t gpio |
GPIO Pin.
| uint32_t mode |
Device Mode.
| uint32_t range |
Device Range.
| uint32_t frequency |
Clock Frequency.
| uint32_t polarity |
Output Polarity.
| uint32_t dutyns |
Duty Nanoseconds.
| uint32_t periodns |
Period Nanonseconds.
| PWM_PROPERTIES properties |
Device properties.
| PWM_DEVICE* prev |
Previous entry in PWM table.
| PWM_DEVICE* next |
Next entry in PWM table.