eFlexPwm
Arduino eFlexPwm library for Teensy 4.x
eFlex Namespace Reference

Library namespace. More...

Classes

class  Config
 Configuration. More...
 
class  SubModule
 Submodule. More...
 
class  Timer
 PWM Module. More...
 

Enumerations

enum  Channel { ChanA = 0 , ChanB = 1 }
 PWM Channel.
 

Functions

uint16_t u16TwoCompl (uint16_t value)
 Complement the variable of type uint16_t as needed. More...
 
uint16_t reloadValue (uint8_t dutyCyclePercent)
 Convert duty cycle to reload value. More...
 

Variables

SubModuleSmList [NofTimers][NofSubmodules]
 
TimerTM [NofTimers]
 

Detailed Description

Library namespace.

Function Documentation

◆ reloadValue()

uint16_t eFlex::reloadValue ( uint8_t  dutyCyclePercent)
inline

Convert duty cycle to reload value.

Parameters
dutyCyclePercentDuty cycle in percent
Returns
uint16_t Reload value

Definition at line 42 of file eFlexPwmGlobal.h.

Referenced by eFlex::SubModule::updateDutyCyclePercent().

◆ u16TwoCompl()

uint16_t eFlex::u16TwoCompl ( uint16_t  value)
inline

Complement the variable of type uint16_t as needed.

This function can complement the variable of type uint16_t as needed.For example, need to ask for the opposite of a positive integer.

Parameters
valueParameters of type uint16_t

Definition at line 32 of file eFlexPwmGlobal.h.