SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
ConnectorX.h File Reference
#include <frc/I2C.h>
#include <frc/Timer.h>
#include <frc/smartdashboard/SmartDashboard.h>
#include <frc/util/Color8Bit.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/InstantCommand.h>
#include <frc2/command/SubsystemBase.h>
#include <hal/SimDevice.h>
#include <chrono>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include "subzero/logging/ConsoleLogger.h"
#include "subzero/logging/ShuffleboardLogger.h"
+ Include dependency graph for ConnectorX.h:

Go to the source code of this file.

Classes

struct  ConnectorX::Message
 
struct  ConnectorX::Commands::LedConfiguration
 
struct  ConnectorX::Commands::Configuration
 
struct  ConnectorX::Commands::CommandOn
 
struct  ConnectorX::Commands::CommandOff
 
struct  ConnectorX::Commands::CommandPattern
 
struct  ConnectorX::Commands::CommandColor
 
struct  ConnectorX::Commands::CommandReadPatternDone
 
struct  ConnectorX::Commands::CommandSetLedPort
 
struct  ConnectorX::Commands::CommandReadAnalog
 
struct  ConnectorX::Commands::CommandDigitalSetup
 
struct  ConnectorX::Commands::CommandDigitalWrite
 
struct  ConnectorX::Commands::CommandDigitalRead
 
struct  ConnectorX::Commands::CommandSetConfig
 
struct  ConnectorX::Commands::CommandReadConfig
 
struct  ConnectorX::Commands::CommandRadioSend
 
struct  ConnectorX::Commands::CommandRadioGetLatestReceived
 
struct  ConnectorX::Commands::CommandGetColor
 
struct  ConnectorX::Commands::CommandGetPort
 
struct  ConnectorX::Commands::CommandSetPatternZone
 
struct  ConnectorX::Commands::NewZone
 
struct  ConnectorX::Commands::CommandSetNewZones
 
struct  ConnectorX::Commands::CommandSyncZoneStates
 
union  ConnectorX::Commands::CommandData
 
struct  ConnectorX::Commands::Command
 
struct  ConnectorX::Commands::ResponsePatternDone
 
struct  ConnectorX::Commands::ResponseReadAnalog
 
struct  ConnectorX::Commands::ResponseDigitalRead
 
struct  ConnectorX::Commands::ResponseRadioLastReceived
 
struct  ConnectorX::Commands::ResponseReadConfiguration
 
struct  ConnectorX::Commands::ResponseReadColor
 
struct  ConnectorX::Commands::ResponseReadPort
 
union  ConnectorX::Commands::ResponseData
 
struct  ConnectorX::Commands::Response
 
struct  ConnectorX::CachedZone
 Stores the state of the Connector-X device locally. More...
 
struct  ConnectorX::CachedPort
 
struct  ConnectorX::CachedDevice
 
class  ConnectorX::ConnectorXBoard
 Driver for use with the I2C, V2 iteration of Connector-X. More...
 

Namespaces

namespace  ConnectorX
 
namespace  ConnectorX::Commands
 

Enumerations

enum class  ConnectorX::Commands::CommandType {
  ConnectorX::Commands::On = 0 , ConnectorX::Commands::Off = 1 , ConnectorX::Commands::Pattern = 2 , ConnectorX::Commands::ChangeColor = 3 ,
  ConnectorX::Commands::ReadPatternDone = 4 , ConnectorX::Commands::SetLedPort = 5 , ConnectorX::Commands::ReadAnalog = 6 , ConnectorX::Commands::DigitalSetup = 7 ,
  ConnectorX::Commands::DigitalWrite = 8 , ConnectorX::Commands::DigitalRead = 9 , ConnectorX::Commands::SetConfig = 10 , ConnectorX::Commands::ReadConfig = 11 ,
  ConnectorX::Commands::RadioSend = 12 , ConnectorX::Commands::RadioGetLatestReceived = 13 , ConnectorX::Commands::GetColor = 14 , ConnectorX::Commands::GetPort = 15 ,
  ConnectorX::Commands::SetPatternZone = 16 , ConnectorX::Commands::SetNewZones = 17 , ConnectorX::Commands::SyncStates = 18
}
 
enum class  ConnectorX::PatternType {
  ConnectorX::None = 0 , ConnectorX::SetAll = 1 , ConnectorX::Blink = 2 , ConnectorX::RGBFade = 3 ,
  ConnectorX::HackerMode = 4 , ConnectorX::Breathe = 5 , ConnectorX::SineRoll = 6 , ConnectorX::Chase = 7 ,
  ConnectorX::AngryEyes = 8 , ConnectorX::HappyEyes = 9 , ConnectorX::BlinkingEyes = 10 , ConnectorX::SurprisedEyes = 11 ,
  ConnectorX::Amogus = 12 , ConnectorX::OwOEyes = 14
}
 
enum class  ConnectorX::PinMode {
  ConnectorX::INPUT = 0 , ConnectorX::OUTPUT = 1 , ConnectorX::INPUT_PULLUP = 2 , ConnectorX::INPUT_PULLDOWN = 3 ,
  ConnectorX::OUTPUT_2MA = 4 , ConnectorX::OUTPUT_4MA = 5 , ConnectorX::OUTPUT_8MA = 6 , ConnectorX::OUTPUT_12MA = 7
}
 
enum class  ConnectorX::DigitalPort { ConnectorX::D0 = 0 , ConnectorX::D1 = 1 , ConnectorX::D2 = 2 }
 
enum class  ConnectorX::AnalogPort
 
enum class  ConnectorX::LedPort { ConnectorX::P0 = 0 , ConnectorX::P1 = 1 }