76 int16_t
begin(uint8_t
pin, uint16_t maxFrequency_Hz = 65535,
bool lowFrequency =
false, uint16_t dutyCycle = 0x8000)
#define SW_LE16(_a)
Convert a uint16_t to two bytes in little endian format for array initialization.
@ PIN_MODE_FREQUENCY_OUTPUT
(36)
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
SerialWombatAbstractScaledOutput(SerialWombatChip &sw)
Constructor for the SerialWombatAbstractScaledOutput Class.
int16_t begin(uint8_t pin, uint16_t maxFrequency_Hz=65535, bool lowFrequency=false, uint16_t dutyCycle=0x8000)
Initialize a pin that has been declared as FrequencyOutput.
SerialWombatFrequencyOutput(SerialWombatChip &serialWombat)
Constructor for SerialWombatFrequencyOutput class.
SerialWombatFrequencyOutput_18AB(SerialWombatChip &serialWombat)
uint8_t swPinModeNumber()
fulfills a virtual function requirement of SerialWombatAbstractScaledOutput
uint8_t pin()
fulfills a virtual function requirement of SerialWombatAbstractScaledOutput
SerialWombatPin(SerialWombatChip &serialWombatChip)
Instantiates a Serial Wombat Pin.
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)
uint8_t pin()
Returns the current SW pin number. Used primarily for virtual calls by derived classes.