Functions | |
void | get_resource_data (const resourceType_t resource, uint8_t *data) |
Function to get different resource data. More... | |
void | resource_init (void) |
Function to initialize different resources. More... | |
int | set_resource_data (const resourceType_t resource, const uint8_t *data) |
Function to set data to resource. More... | |
void get_resource_data | ( | const resourceType_t | resource, |
uint8_t * | data | ||
) |
Function to get different resource data.
[in] | resource | - Type of resource (Motor, Light, Temperature) |
[out] | *data | - Pointer to the data from different resource |
References get_temp_sensor_data(), TEMP_SENSOR, and UNSUPPORTED_RESOURCE.
void resource_init | ( | void | ) |
Function to initialize different resources.
Function to initialize the different resources.
References temp_sensor_init().
Referenced by mote_demo_init().
int set_resource_data | ( | const resourceType_t | resource, |
const uint8_t * | data | ||
) |
Function to set data to resource.
[in] | resourceType_t | - Type of resource (Temperature) |
[out] | *data | - Pointer to the data from different resource |
References LED_AMBER, LED_GREEN, set_LED_data(), and UNSUPPORTED_RESOURCE.