99 (uint8_t)(resetCounts?1:0),
105 int16_t result =
_sw.sendPacket(tx, rx);
110 uint32_t returnval = (((uint32_t)rx[6]) << 24) + (((uint32_t)rx[5]) << 16) + (((uint16_t)rx[4]) << 8) + rx[3];
127 int16_t result =
_sw.sendPacket(tx, rx);
132 uint32_t returnval = (((uint32_t)rx[6]) << 24) + (((uint32_t)rx[5]) << 16) + (((uint16_t)rx[4]) << 8) + rx[3];
145 0x55,0x55,0x55,0x55,0x55
147 return _sw.sendPacket(tx);
@ CONFIGURE_PIN_MODE_DISABLE
(219)
@ CONFIGURE_PIN_MODE2
(202)
@ CONFIGURE_PIN_MODE1
(201)
@ PIN_MODE_HS_COUNTER
< (29)
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
This class name is depricated. Do not use for new development. Use SerialWombatChip instead.
SerialWombatAbstractProcessedInput(SerialWombatChip &sw)
Constructor for the SerialWombatAbstractScaledOutput Class.
int16_t disable()
Disables the high speed clock output.
int16_t begin(uint8_t pin, SerialWombatHSCounter::publicDataOutput publicDataOutput=publicDataOutput::FREQUENCY_ON_LTH_TRANSITION, uint16_t framesBetweenUpdates=100, uint16_t publicOutputDivisor=1)
Initialization routine for SerialWombatHSCounter.
uint32_t readCounts(bool resetCounts=false)
@ FREQUENCY_ON_LTH_TRANSITION
The frequency of the pulse in Hz.
@ PULSE_COUNT
The number of pulses that have occured since initialization.
uint8_t swPinModeNumber()
Used for ineheritance.
SerialWombatHSCounter(SerialWombatChip &serialWombat)
Class constructor for SerialWombatHSCounter.
uint8_t pin()
Used for inheritance.
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)