ClearCore Library
List of all members | Public Types | Public Member Functions
ClearCore::SysManager Class Reference

Detailed Description

ClearCore Board Supervisory System Manager.

This class manages the features of the Teknic ClearCore board.

ClearCore Board Supervisory System Manager. More...

#include <SysManager.h>

Public Types

enum  ResetModes { RESET_NORMAL, RESET_TO_BOOTLOADER }
 Reset modes for the ClearCore board. More...
 

Public Member Functions

ConnectorConnectorByIndex (ClearCorePins connectorIndex)
 Pin-determined accessor for ClearCore Connector objects. More...
 
void ResetBoard (ResetModes mode=RESET_NORMAL)
 Resets the ClearCore. More...
 

Member Enumeration Documentation

Reset modes for the ClearCore board.

Enumerator
RESET_NORMAL 

Reset and restart normal program execution.

RESET_TO_BOOTLOADER 

Reset and start up in the bootloader.

Member Function Documentation

Connector* ClearCore::SysManager::ConnectorByIndex ( ClearCorePins  connectorIndex)

Pin-determined accessor for ClearCore Connector objects.

// Save and cast a pointer to the IO-3 connector object.
// Be sure to cast the base Connector pointer to the correct type!
DigitalInOut *io3 =
static_cast<DigitalInOut*>(SysMgr.ConnectorByIndex(CLEARCORE_PIN_IO3));
Parameters
[in]connectorIndexThe index in the connector array
Returns
A pointer to a connector. If the connector is out of range, a NULL pointer is returned.
void ClearCore::SysManager::ResetBoard ( ResetModes  mode = RESET_NORMAL)

Resets the ClearCore.

// Reset the ClearCore and restart the application from the beginning.
Parameters
[in]modeThe reset mode. Valid reset modes are:

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