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

Public Member Functions

void set (char *name)
 
void addGPIO (char *name, char *GPIOType, char *portName, int pinNumber, int value)
 
void appendGPIOs ()
 
void addFunction (char *name, char *methodName)
 
void appendFunctions ()
 
char * get ()
 

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 pinTypes[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

◆ get()

char * Device::get ( )
Returns
char*

◆ set()

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

Member Data Documentation

◆ pinTypes

char Device::pinTypes[5][10] = {"out", "in", "analogIn", "analogOut", "pwm"}
Parameters
charpinTypes[5][10] = {"out", "in", "analogIn", "analogOut", "pwm"};

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