ClearCore Library
|
#include <stddef.h>
#include <stdint.h>
#include "CcioPin.h"
#include "SerialDriver.h"
#include "SysConnectors.h"
#include "SysTiming.h"
Go to the source code of this file.
Classes | |
class | ClearCore::CcioBoardManager |
ClearCore I/O Expansion Board Manager Class. More... | |
Namespaces | |
namespace | ClearCore |
Namespace to encompass the ClearCore board API. | |
Macros | |
#define | CCIO_PINS_PER_BOARD 8 |
#define | MAX_CCIO_DEVICES 8 |
#define | CCIO_PIN_CNT (CCIO_PINS_PER_BOARD * MAX_CCIO_DEVICES) |
#define | MAX_FLUSH_ATTEMPTS 4 |
#define | MAX_GLITCH_LIM 4 |
#define | CCIO_OVERLOAD_TRIP_TICKS ((uint8_t)(2.4 * MS_TO_SAMPLES)) |
#define | CCIO_OVERLOAD_FOLDBACK_TICKS (100 * MS_TO_SAMPLES) |
This class manages control of the ClearCore I/O (CCIO-8) Expansion Boards connected to a serial port on the ClearCore.
Provides support for CCIO-8 discovery and non-PWM digital I/O on CCIO-8 board pins.
#define CCIO_OVERLOAD_FOLDBACK_TICKS (100 * MS_TO_SAMPLES) |
The number of samples to force the output to be deasserted when an overload condition occurs on that output.
#define CCIO_OVERLOAD_TRIP_TICKS ((uint8_t)(2.4 * MS_TO_SAMPLES)) |
The number of consecutive samples having the output asserted with the input deasserted before the output is flagged as being overloaded.
#define CCIO_PIN_CNT (CCIO_PINS_PER_BOARD * MAX_CCIO_DEVICES) |
The maximum number of CCIO-8 pins that can be addressed at any given time.
#define CCIO_PINS_PER_BOARD 8 |
The number of I/O pins on one CCIO-8 Expansion Board.
#define MAX_CCIO_DEVICES 8 |
The maximum number CCIO-8 Expansion Boards that can be chained to the ClearCore at any given time.
#define MAX_FLUSH_ATTEMPTS 4 |
The maximum number of times to attempt to flush data through the chain of connected CCIO-8 boards during the discover process before bailing out.
#define MAX_GLITCH_LIM 4 |
The maximum number of allowable data glitches to handle during the discover process before bailing out.