|
| SerialWombatPWM_18AB (SerialWombatChip &serialWombat) |
|
void | writeFrequency_Hz (uint32_t frequency_Hz) |
| Set the PWM frequency on a Serial Wombat 18AB chip's PWM. More...
|
|
void | writePeriod_uS (uint32_t period_uS) |
| Set the PWM period on a Serial Wombat 18AB chip's PWM. More...
|
|
uint8_t | pin () |
| fulfills a virtual function requirement of SerialWombatAbstractScaledOutput More...
|
|
uint8_t | swPinModeNumber () |
| fulfills a virtual function requirement of SerialWombatAbstractScaledOutput More...
|
|
| SerialWombatPWM (SerialWombatChip &serialWombat) |
| Constructor for SerialWombatPWM class. More...
|
|
int16_t | begin (uint8_t pin, uint16_t dutyCycle=0, bool invert=false) |
| Initialize a pin that has been declared as PWM. More...
|
|
void | writeDutyCycle (uint16_t dutyCycle) |
|
| SerialWombatPin (SerialWombatChip &serialWombatChip) |
| Instantiates a Serial Wombat Pin. More...
|
|
| SerialWombatPin (SerialWombatChip &serialWombatChip, uint8_t pin) |
| Instantiates a Serial Wombat Pin. More...
|
|
uint16_t | readPublicData () |
| Read the 16 Bit public data associated with this pin. More...
|
|
void | pinMode (uint8_t mode, bool pullDown=false, bool openDrain=false) |
| Set pin to INPUT or OUTPUT, with options for pull Ups and open Drain settings. More...
|
|
void | digitalWrite (uint8_t val) |
| Set output pin High or Low. More...
|
|
int | digitalRead () |
| Reads the state of the Pin. More...
|
|
uint16_t | writePublicData (uint16_t value) |
| Write a 16 bit value to this pin. More...
|
|
uint8_t | pin () |
| Returns the current SW pin number. Used primarily for virtual calls by derived classes. More...
|
|
uint8_t | swPinModeNumber () |
| Returns the Mode number. Used primarily by derived classes to populate packet data. More...
|
|
int16_t | initPacketNoResponse (uint8_t packetNumber, uint8_t param0=0x55, uint8_t param1=0x55, uint8_t param2=0x55, uint8_t param3=0x55, uint8_t param4=0x55) |
|
int16_t | initPacketNoResponse (uint8_t packetNumber, uint16_t param0=0x55, uint8_t param1=0x55, uint8_t param2=0x55, uint8_t param3=0x55) |
|
int16_t | initPacketNoResponse (uint8_t packetNumber, uint16_t param0, uint16_t param1, uint8_t param2=0x55) |
|
int16_t | disable () |
| Disables the pin mode (if applicable) More...
|
|
| SerialWombatAbstractScaledOutput (SerialWombatChip &sw) |
| Constructor for the SerialWombatAbstractScaledOutput Class. More...
|
|
int16_t | writeTimeout (uint16_t timeout_mS, uint16_t timeoutOutputValue) |
| Enable a timeout value which will cause the output to go to a default value if not updated. More...
|
|
int16_t | writeScalingEnabled (bool enabled, uint8_t sourcePin) |
| Enable scaling and set which pin or public data is used as the input source. More...
|
|
int16_t | writeInputScaling (uint16_t inputMin, uint16_t inputMax) |
| Scale incoming values to a range of 0 to 65535. More...
|
|
int16_t | writeOutputScaling (uint16_t outputMin, uint16_t outputMax) |
| Reduces the output range from 0 to 65535 to user specified range. More...
|
|
int16_t | writeScalingInvertedInput (bool inverted) |
| if enabled subtract the input value from 65535 before doing any other processing. More...
|
|
int16_t | writeScalingTargetValue (uint16_t target) |
| The target input value for PID control. More...
|
|
int16_t | writeRateControl (Period samplePeriod, uint16_t maximumChangecounts) |
|
int16_t | write1stOrderFiltering (Period sampleRate, uint16_t filterConstant) |
|
int16_t | writeHysteresis (uint16_t lowLimit, uint16_t lowOutputValue, uint16_t highLimit, uint16_t highOutputValue, uint16_t initialOutputValue) |
| Controls the output based on hystersis control. More...
|
|
int16_t | writePID (uint16_t kp, uint16_t ki, uint16_t kd, uint16_t target, Period samplePeriod) |
| Configure the scaled output block into PID control mode. More...
|
|
uint16_t | readLastOutputValue () |
| Request Last Output Value. More...
|
|
int16_t | writeScalingTargetValueResetIntegrator (uint16_t target) |
|
int32_t | PIDGetLastError () |
|
int32_t | PIDGetLastIntegrator () |
|
int32_t | PIDGetLastIntegratorEffort () |
|
int32_t | PIDGetLastProportionalEffort () |
|
int32_t | PIDGetLastDerivativeEffort () |
|
int32_t | PIDGetLastEffort () |
|
uint16_t | ReadLastTarget () |
|
int16_t | Enable2DLookupOutputScaling (uint16_t IndexInUserMemory) |
| Set Up 2D Lookup Output Scaling. More...
|
|
Extends the SerialWombatPWM class with SW18AB specific functionality, including SerialWombatAbstractScaledOutput.