UniSaSA
1.0
C Gateway
|
Go to the source code of this file.
Data Structures | |
union | IDSensor_t |
union | sensorType_t |
struct | sensor_t |
union | IDActuator_t |
union | actuatorType_t |
struct | actuator_t |
union | discoveredAddress_t |
struct | discoveredDevice_t |
struct | connectorInterface_t |
union | IDDevice_t |
union | deviceAddress_t |
union | numSensors_t |
union | numActuators_t |
struct | device_t |
Typedefs | |
typedef union IDSensor_t | IDSensor_t |
typedef union sensorType_t | sensorType_t |
typedef struct sensor_t | sensor_t |
typedef union IDActuator_t | IDActuator_t |
typedef union actuatorType_t | actuatorType_t |
typedef struct actuator_t | actuator_t |
typedef union discoveredAddress_t | discoveredAddress_t |
typedef struct discoveredDevice_t | discoveredDevice_t |
typedef unsigned int(* | discoveryFunc) (discoveredDevice_t *devices) |
typedef int(* | checkDeviceFunc) (unsigned char *addr) |
typedef void(* | msgToDeviceFunc) (unsigned char *addr, unsigned char sizeData, unsigned char *data) |
typedef void(* | msgAndAnswerToDeviceFunc) (unsigned char *addr, unsigned char sizeReqAns, unsigned char *request, unsigned char *answer) |
typedef void(* | getSensorValueFunc) (unsigned char *addr, unsigned char sizeIDSen, unsigned char *IDSen, unsigned char sizeValue, unsigned char *value) |
typedef void(* | setActuatorValueFunc) (unsigned char *addr, unsigned char sizeIDAct, unsigned char *IDAct, unsigned char sizeValue, unsigned char *value) |
typedef struct connectorInterface_t | connectorInterface_t |
typedef union IDDevice_t | IDDevice_t |
typedef union deviceAddress_t | deviceAddress_t |
typedef union numSensors_t | numSensors_t |
typedef union numActuators_t | numActuators_t |
typedef struct device_t | device_t |
Functions | |
sensor_t | createSensor (unsigned int ID, unsigned int typeSensor, unsigned char sizeOutput, unsigned char typeOutput) |
actuator_t | createActuator (unsigned int ID, unsigned int typeActuator, unsigned char sizeInput, unsigned char typeInput) |
device_t | createDevice (unsigned int ID, connectorInterface_t connector, unsigned int address, unsigned char sizeIO, unsigned char sizeIDSensor, unsigned int numSensors, sensor_t *sensors, unsigned char sizeIDActuator, unsigned int numActuators, actuator_t *actuators) |
typedef struct actuator_t actuator_t |
Actuator struct
typedef int(* checkDeviceFunc) (unsigned char *addr) |
Verify yhe state of the node
Definition at line 90 of file connector.h.
typedef struct connectorInterface_t connectorInterface_t |
Connector Interface
typedef unsigned int(* discoveryFunc) (discoveredDevice_t *devices) |
Discovery devices connected
Definition at line 88 of file connector.h.
typedef void(* getSensorValueFunc) (unsigned char *addr, unsigned char sizeIDSen, unsigned char *IDSen, unsigned char sizeValue,unsigned char *value) |
Get the value of a sensor
Definition at line 97 of file connector.h.
typedef void(* msgAndAnswerToDeviceFunc) (unsigned char *addr, unsigned char sizeReqAns, unsigned char *request, unsigned char *answer) |
Send a message to a device and get an answer
Definition at line 94 of file connector.h.
typedef void(* msgToDeviceFunc) (unsigned char *addr, unsigned char sizeData, unsigned char *data) |
Send a message to a device
Definition at line 92 of file connector.h.
typedef void(* setActuatorValueFunc) (unsigned char *addr, unsigned char sizeIDAct, unsigned char *IDAct, unsigned char sizeValue, unsigned char *value) |
Set the value of an actuator
Definition at line 99 of file connector.h.
actuator_t createActuator | ( | unsigned int | ID, |
unsigned int | typeActuator, | ||
unsigned char | sizeInput, | ||
unsigned char | typeInput | ||
) |
Create an actuator struct
Definition at line 15 of file connector.c.
device_t createDevice | ( | unsigned int | ID, |
connectorInterface_t | connector, | ||
unsigned int | address, | ||
unsigned char | sizeIO, | ||
unsigned char | sizeIDSensor, | ||
unsigned int | numSensors, | ||
sensor_t * | sensors, | ||
unsigned char | sizeIDActuator, | ||
unsigned int | numActuators, | ||
actuator_t * | actuators | ||
) |
create a device struct
Definition at line 27 of file connector.c.
sensor_t createSensor | ( | unsigned int | ID, |
unsigned int | typeSensor, | ||
unsigned char | sizeOutput, | ||
unsigned char | typeOutput | ||
) |
Create a sensor Struct
Definition at line 4 of file connector.c.