semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
Device Class Reference

Public Member Functions

 Device (char *json, char *jsonPins, char *jsonFunctions)
 
void setObj (char *name)
 
void addGPIO (char *name, char *GPIOType, char *portName, int pinNumber, int value)
 
void appendGPIOs ()
 
void addFunction (char *name, char *methodName)
 
void appendFunctions ()
 

Public Attributes

char pinTypes [5][10] = {"out", "in", "analogIn", "analogOut", "pwm"}
 

Member Function Documentation

◆ addFunction()

void Device::addFunction ( char * name,
char * methodName )
Parameters
name- the name of theobject
methodName- the name of the method to call
Returns
void

◆ addGPIO()

void Device::addGPIO ( char * name,
char * GPIOType,
char * portName,
int pinNumber,
int value )
Parameters
name- the name of the device
GPIOType- the type of the pin: char GPIOTypes[5][10] = {"out", "in", "analogIn", "analogOut", "pwm"};
portName- the name of the Port
pinNumber- the pin number
value- the status of the pin
Returns
void

◆ appendFunctions()

void Device::appendFunctions ( )
Returns
void

◆ appendGPIOs()

void Device::appendGPIOs ( )
Returns
void

◆ setObj()

void Device::setObj ( char * name)
Parameters
name- it is the name of the device
Returns
void

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