Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_PWM_DEVICE Struct Reference

#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_DEVICEprev
 Previous entry in PWM table.
PWM_DEVICEnext
 Next entry in PWM table.

Field Documentation

◆ device

DEVICE device

The Device entry for this PWM.

◆ pwmid

uint32_t pwmid

Unique Id of this PWM in the PWM table.

◆ pwmstate

uint32_t pwmstate

PWM state (eg PWM_STATE_ENABLED).

◆ devicestart

pwm_device_start_proc devicestart

A Device specific DeviceStart method implementing the standard PWM device interface (Mandatory).

◆ devicestop

A Device specific DeviceStop method implementing the standard PWM device interface (Mandatory).

◆ devicewrite

pwm_device_write_proc devicewrite

A Device specific DeviceWrite method implementing the standard PWM device interface (Mandatory).

◆ devicegetgpio

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).

◆ devicesetgpio

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).

◆ devicegetmode

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).

◆ devicesetmode

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).

◆ devicegetrange

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).

◆ devicesetrange

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).

◆ devicegetfrequency

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).

◆ devicesetfrequency

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).

◆ devicegetpolarity

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).

◆ devicesetpolarity

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).

◆ deviceconfigure

pwm_device_configure_proc deviceconfigure

A Device specific DeviceConfigure method implementing the standard PWM device interface (Mandatory).

◆ devicegetproperties

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).

◆ getcount

uint32_t getcount

◆ setcount

uint32_t setcount

◆ writecount

uint32_t writecount

◆ configcount

uint32_t configcount

◆ lock

Device lock.

◆ gpio

uint32_t gpio

GPIO Pin.

◆ mode

uint32_t mode

Device Mode.

◆ range

uint32_t range

Device Range.

◆ frequency

uint32_t frequency

Clock Frequency.

◆ polarity

uint32_t polarity

Output Polarity.

◆ dutyns

uint32_t dutyns

Duty Nanoseconds.

◆ periodns

uint32_t periodns

Period Nanonseconds.

◆ properties

PWM_PROPERTIES properties

Device properties.

◆ prev

PWM_DEVICE* prev

Previous entry in PWM table.

◆ next

PWM_DEVICE* next

Next entry in PWM table.


The documentation for this struct was generated from the following file: