Veethree D7 SDK
Loading...
Searching...
No Matches
PWM Input/Output

Detailed Description

PWM signal generation and measurement.

The PWM Input/Output submodule provides interfaces for working with PWM (Pulse Width Modulation) signals. It supports both input operations (measuring external PWM signals) and output operations (generating PWM signals to control external devices).

Key classes:

Usage pattern:

  1. Create pwm channel objects with appropriate descriptors using vsdk::io::pwm_in_descriptor or vsdk::io::pwm_out_descriptor
  2. For output channels: call vsdk::io::pwm_out_channel::set_on() to activate the channel
  3. For input channels: call vsdk::io::pwm_in_channel::read() to get the pwm_result containing the status and value of the channel in Hz.
  4. Call vsdk::io::pwm_out_channel::set_off() when finished using the output channels

See PWM I/O examples for a usage examples of the PWM module.

Classes

struct  vsdk::io::pwm_out_descriptor
 The pwm_out_descriptor classHolds the configuration for a pwm_out_channel. More...
struct  vsdk::io::pwm_in_descriptor
 The pwm_in_descriptor class. More...
class  vsdk::io::pwm_in_channel
 The pwm_in_channel class. More...
class  vsdk::io::pwm_out_channel
 The pwm_out_channel class. More...

Enumerations

enum class  vsdk::io::digout::pwm : uint8_t { vsdk::io::digout::pwm::none , vsdk::io::digout::pwm::pwm0 , vsdk::io::digout::pwm::pwm1 }
 PWM output channels. More...
enum class  vsdk::io::digin::pwm : uint8_t { vsdk::io::digin::pwm::none , vsdk::io::digin::pwm::pwm0 , vsdk::io::digin::pwm::pwm1 }
 PWM input channels. More...

Detailed Description

PWM signal generation and measurement.

The PWM Input/Output submodule provides interfaces for working with PWM (Pulse Width Modulation) signals. It supports both input operations (measuring external PWM signals) and output operations (generating PWM signals to control external devices).

Key classes:

Usage pattern:

  1. Create pwm channel objects with appropriate descriptors using vsdk::io::pwm_in_descriptor or vsdk::io::pwm_out_descriptor
  2. For output channels: call vsdk::io::pwm_out_channel::set_on() to activate the channel
  3. For input channels: call vsdk::io::pwm_in_channel::read() to get the pwm_result containing the status and value of the channel in Hz.
  4. Call vsdk::io::pwm_out_channel::set_off() when finished using the output channels

See PWM I/O examples for a usage examples of the PWM module.

Enumeration Type Documentation

◆ pwm [1/2]

enum class vsdk::io::digin::pwm : uint8_t
strong

PWM input channels.

Available PWM input channels

Enumerator
none 

no pwm channel set (default value)

pwm0 

pwm channel 0

pwm1 

pwm channel 1

◆ pwm [2/2]

enum class vsdk::io::digout::pwm : uint8_t
strong

PWM output channels.

Available PWM output channels

Enumerator
none 

no pwm channel set (default value)

pwm0 

pwm channel 0

pwm1 

pwm channel 1