Microchip® Advanced Software Framework

resources.h File Reference
#include "asf.h"

Typedefs

typedef enum _resourceType resourceType_t
 

Enumerations

enum  _resourceType {
  TEMP_SENSOR = 0x1,
  LED_AMBER = 0x2,
  LED_GREEN = 0x3,
  UNSUPPORTED_RESOURCE = 0xFF
}
 

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 the different resources. More...
 
int set_resource_data (const resourceType_t resource, const uint8_t *data)
 Function to set data to resource. More...
 

Enumerator
TEMP_SENSOR 
LED_AMBER 
LED_GREEN 
UNSUPPORTED_RESOURCE 

void get_resource_data ( const resourceType_t  resource,
uint8_t *  data 
)

Function to get different resource data.

Parameters
[in]resourceType_t- Type of resource (Temperature)
[out]*data- Pointer to the data from different resource
[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 the 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.

Parameters
[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.