My Project
Loading...
Searching...
No Matches
BLELocomotive Class Reference

#include <BLELocomotive.h>

Public Member Functions

 BLELocomotive (BLELocomotiveConfiguration *config, MController *controller)
 
bool AllHubsConnected ()
 
void Drive (const int16_t minSpeed, const int16_t pwrPerc)
 
void TriggerEvent (MCTriggerSource source, std::string eventType, std::string eventId, std::string value)
 
void BlinkLights (int durationInMs)
 
void SetHubLedColor (HubLedColor color)
 
void SetEmergencyBrake (const bool enabled)
 
std::string GetLocoName ()
 
uint GetLocoAddress ()
 
uint GetHubCount ()
 
BLEHubGetHub (uint index)
 

Public Attributes

std::vector< BLEHub * > Hubs
 

Constructor & Destructor Documentation

◆ BLELocomotive()

BLELocomotive::BLELocomotive ( BLELocomotiveConfiguration * config,
MController * controller )

Member Function Documentation

◆ AllHubsConnected()

bool BLELocomotive::AllHubsConnected ( )
Here is the caller graph for this function:

◆ BlinkLights()

void BLELocomotive::BlinkLights ( int durationInMs)
Here is the call graph for this function:

◆ Drive()

void BLELocomotive::Drive ( const int16_t minSpeed,
const int16_t pwrPerc )
Here is the call graph for this function:

◆ GetHub()

BLEHub * BLELocomotive::GetHub ( uint index)

◆ GetHubCount()

uint BLELocomotive::GetHubCount ( )

◆ GetLocoAddress()

uint BLELocomotive::GetLocoAddress ( )

◆ GetLocoName()

std::string BLELocomotive::GetLocoName ( )

◆ SetEmergencyBrake()

void BLELocomotive::SetEmergencyBrake ( const bool enabled)

◆ SetHubLedColor()

void BLELocomotive::SetHubLedColor ( HubLedColor color)
Here is the call graph for this function:

◆ TriggerEvent()

void BLELocomotive::TriggerEvent ( MCTriggerSource source,
std::string eventType,
std::string eventId,
std::string value )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Hubs

std::vector<BLEHub *> BLELocomotive::Hubs

The documentation for this class was generated from the following files: