Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
Classes | Enumerations | Functions | Variables
brownies.H File Reference
#include "env.H"
#include "resources.H"
#include "avr/interface.h"
Include dependency graph for brownies.H:

Go to the source code of this file.

Classes

class  CBrownie
 Representation of a Brownie device. More...
 
class  CBrownieSet
 Set of Brownies More...
 
class  CBrownieLink
 Brownie communication (TWI) link More...
 

Enumerations

enum  ETwiIfType { ifNone = 0 , ifSocket , ifI2cDev , ifElvI2c , ifEND }
 Brownie link interface type. More...
 

Functions

const char * BrStatusStr (EBrStatus s)
 Get a readable string for Brownie status codes.
 
const char * BrMcuStr (int mcuType, const char *unknown=NULL)
 Get a readable string (for example, "t84") for an MCU model ID (see BR_MCU_* macros). On error, the value passed by 'unkown' is returned.
 
int BrMcuFromStr (const char *mcuStr)
 Get the MCU model ID (see BR_MCU_* macros) from a string (for example, "t84"). On error, BR_MCU_NONE is returned.
 
uint32_t BrVersionGet (TBrFeatureRecord *featureRecord)
 Retrieve version from feature record.
 
static const char * BrVersionGetAsStr (CString *ret, TBrFeatureRecord *featureRecord)
 Get a readable string of the version fields of the feature record. The result is written to '*ret' and returned.
 
bool BrVersionFromStr (TBrFeatureRecord *featureRecord, const char *str)
 Set the version fields of the feature record according to the given version string.
 
const char * BrFeaturesToStr (CString *ret, TBrFeatureRecord *featureRecord)
 Get a readable string of the feature-related fields of the feature record. The result is written to '*ret' and returned.
 
bool BrFeaturesFromStr (TBrFeatureRecord *featureRecord, const char *str)
 Set the feature-related fields of the feature record according to the given string.
 

Variables

const char * envBrDatabaseFile
 Name of the selected database file (read-only).
 
const char * envBrLinkDev
 Name of the selected link device (read-only).