Serial Wombat Arduino Library
|
#include <stdint.h>
#include "Stream.h"
#include "Wire.h"
#include "Arduino.h"
#include "SerialWombatPin.h"
#include "SerialWombatErrors.h"
#include "SerialWombatQueue.h"
#include "SerialWombat18ABDataLogger.h"
#include "SerialWombatAbstractButton.h"
#include "SerialWombatAbstractProcessedInput.h"
#include "SerialWombatAbstractScaledOutput.h"
#include "SerialWombat18CapTouch.h"
#include "SerialWombat18ABVGA.h"
#include "SerialWombatAnalogInput.h"
#include "SerialWombatDebouncedInput.h"
#include "SerialWombatFrequencyOutput.h"
#include "SerialWombatHBridge.h"
#include "SerialWombatHSClock.h"
#include "SerialWombatHSCounter.h"
#include "SerialWombatLiquidCrystal.h"
#include "SerialWombatMatrixKeypad.h"
#include "SerialWombatProcessedInputPin.h"
#include "SerialWombatProtectedOutput.h"
#include "SerialWombatPS2Keyboard.h"
#include "SerialWombatPulseOnChange.h"
#include "SerialWombatPulseTimer.h"
#include "SerialWombatPWM.h"
#include "SerialWombatQuadEnc.h"
#include "SerialWombatQueuedPulseOutput.h"
#include "SerialWombatResistanceInput.h"
#include "SerialWombatServo.h"
#include "SerialWombatTM1637.h"
#include "SerialWombatUART.h"
#include "SerialWombatUltrasonicDistanceSensor.h"
#include "SerialWombatWatchdog.h"
#include "SerialWombatWS2812.h"
#include "SerialWombatThroughputConsumer.h"
Go to the source code of this file.
Classes | |
class | SerialWombatChip |
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance. More... | |
class | SerialWombat18ABOscillatorTuner |
A class which tunes the oscillator on a Serial Wombat 18AB chip. More... | |
class | SerialWombat |
This class name is depricated. Do not use for new development. Use SerialWombatChip instead. More... | |
Macros | |
#define | SW_LE16(_a) |
Convert a uint16_t to two bytes in little endian format for array initialization. | |
#define | SW_LE32(_a) |
Convert a uint32_t to four bytes in little endian format for array initialization. | |
#define | ARRAY_UINT32(_array, _index) |
#define | SW18AB_LATEST_FIRMWARE 214 |
#define | SW08B_LATEST_FIRMWARE 215 |
#define | SW4B_LATEST_FIRMWARE 203 |
#define | ERROR_HOST_INCORRECT_NUMBER_BYTES_WRITTEN 0x10000 |
Write routine returned wrong number of bytes. | |
#define | ERROR_HOST_DATA_TOO_LONG 0x10001 |
endTransmission returned data too long | |
#define | ERROR_HOST_NACK_ADDRESS 0x10002 |
endTransmission returned address NACK | |
#define | ERROR_HOST_NACK_DATA 0x10003 |
endTransmission returned data NACK | |
#define | ERROR_HOST_OTHER_I2C_ERROR 0x10004 |
endTransmission returned other error | |
#define | WOMBAT_MAXIMUM_PINS 20 |
Typedefs | |
typedef void(* | SerialWombatErrorHandler_t) (uint16_t errorNumber, SerialWombatChip *sw) |
Functions | |
void | SerialWombatSerialErrorHandlerBrief (uint16_t error, SerialWombatChip *sw) |
a sample error handler that can be registered with registerErrorHandler to report protocol errors on Serial. | |
void | SerialWombatSerialErrorHandlerVerbose (uint16_t error, SerialWombatChip *sw) |
#define ARRAY_UINT32 | ( | _array, | |
_index ) |
Definition at line 46 of file SerialWombat.h.
#define ERROR_HOST_DATA_TOO_LONG 0x10001 |
endTransmission returned data too long
Definition at line 179 of file SerialWombat.h.
#define ERROR_HOST_INCORRECT_NUMBER_BYTES_WRITTEN 0x10000 |
Write routine returned wrong number of bytes.
Definition at line 178 of file SerialWombat.h.
#define ERROR_HOST_NACK_ADDRESS 0x10002 |
endTransmission returned address NACK
Definition at line 180 of file SerialWombat.h.
#define ERROR_HOST_NACK_DATA 0x10003 |
endTransmission returned data NACK
Definition at line 181 of file SerialWombat.h.
#define ERROR_HOST_OTHER_I2C_ERROR 0x10004 |
endTransmission returned other error
Definition at line 182 of file SerialWombat.h.
#define SW08B_LATEST_FIRMWARE 215 |
Definition at line 48 of file SerialWombat.h.
#define SW18AB_LATEST_FIRMWARE 214 |
Definition at line 47 of file SerialWombat.h.
#define SW4B_LATEST_FIRMWARE 203 |
Definition at line 49 of file SerialWombat.h.
#define SW_LE16 | ( | _a | ) |
Convert a uint16_t to two bytes in little endian format for array initialization.
Definition at line 41 of file SerialWombat.h.
#define SW_LE32 | ( | _a | ) |
Convert a uint32_t to four bytes in little endian format for array initialization.
Definition at line 44 of file SerialWombat.h.
#define WOMBAT_MAXIMUM_PINS 20 |
Definition at line 184 of file SerialWombat.h.
typedef void(* SerialWombatErrorHandler_t) (uint16_t errorNumber, SerialWombatChip *sw) |
Definition at line 288 of file SerialWombat.h.
|
strong |
Definition at line 186 of file SerialWombat.h.
|
strong |
A list of Serial Wombat public data sources.
Definition at line 60 of file SerialWombat.h.
Definition at line 249 of file SerialWombat.h.
Enumerator | |
---|---|
SW_LOW | |
SW_HIGH | |
SW_INPUT |
Definition at line 51 of file SerialWombat.h.
void SerialWombatSerialErrorHandlerBrief | ( | uint16_t | error, |
SerialWombatChip * | sw ) |
a sample error handler that can be registered with registerErrorHandler to report protocol errors on Serial.
Do not use this when using Serial to control the Serial Wombat Chip
error | The error number that was reported |
pointer | to the Serial Wombat Chip instance that generated the error |
Definition at line 359 of file SerialWombat.cpp.
void SerialWombatSerialErrorHandlerVerbose | ( | uint16_t | error, |
SerialWombatChip * | sw ) |