Пример #1
0
#define SENSOR_DATA_LEN         PIR_DATA_LEN

#define SENSOR_DATA_DESCR       "PIR Status"

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Service UUID
static CONST uint8 sensorServiceUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_SERVICE_UUID),
};

// Characteristic UUID: data
static CONST uint8 sensorDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_DATA_UUID),
};

/*********************************************************************
 * EXTERNAL VARIABLES
 */

/*********************************************************************
 * EXTERNAL FUNCTIONS
 */
Пример #2
0
/*********************************************************************
 * CONSTANTS
 */

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */
// Test GATT Profile Service UUID
CONST uint8 testServUUID[TI_UUID_SIZE] =
{
  TI_UUID(TEST_SERV_UUID)
};

// Data Characteristic UUID
CONST uint8 testDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(TEST_DATA_UUID)
};

// Config Characteristic UUID
CONST uint8 testConfUUID[TI_UUID_SIZE] =
{
  TI_UUID(TEST_CONF_UUID)
};

Пример #3
0
/*********************************************************************
* CONSTANTS
*/

/*********************************************************************
* TYPEDEFS
*/

/*********************************************************************
* GLOBAL VARIABLES
*/
// Simple GATT Profile Service UUID: 0xCCC0
CONST uint8 ccServiceServUUID[TI_UUID_SIZE] =
{
  TI_UUID(CCSERVICE_SERV_UUID),
};

// Characteristic 1 UUID: 0xCCC1
CONST uint8 ccServicechar1UUID[TI_UUID_SIZE] =
{
  TI_UUID(CCSERVICE_CHAR1_UUID),
};

// Characteristic 2 UUID: 0xCCC2
CONST uint8 ccServicechar2UUID[TI_UUID_SIZE] =
{
  TI_UUID(CCSERVICE_CHAR2_UUID),
};

// Characteristic 3 UUID: 0xCCC3
Пример #4
0
#define SENSOR_PERIOD_DESCR     "Barom. Period"
#define SENSOR_CALIBR_DESCR     "Barom. Calibr."
#endif
   
/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Service UUID
static CONST uint8 sensorServiceUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_SERVICE_UUID),
};

// Characteristic UUID: data
static CONST uint8 sensorDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_DATA_UUID),
};

// Characteristic UUID: config
static CONST uint8 sensorCfgUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_CONFIG_UUID),
};

// Characteristic UUID; calibration
   
#define SENSOR_DATA3_DESCR       "UV Data"
#define SENSOR_CONFIG2_DESCR     "UV Conf."
#define SENSOR_PERIOD2_DESCR     "UV Period"
/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Service UUID
static CONST uint8 sensorServiceUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_SERVICE_UUID),
};

// Characteristic UUID: data
static CONST uint8 sensorDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_DATA_UUID),
};

// Characteristic UUID: config
static CONST uint8 sensorCfgUUID[TI_UUID_SIZE] =
{
  TI_UUID(SENSOR_CONFIG_UUID),
};

// Characteristic UUID: period
#define REGISTER_INTERFACE_SPI3   4 // Spare
#define REGISTER_INTERFACE_MCU    5 // MCU address space
#define REGISTER_INTERFACE_NUM    6 // Number of defined interfaces

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Service UUID
static CONST uint8_t sensorServiceUUID[TI_UUID_SIZE] =
{
  TI_UUID(REGISTER_SERV_UUID),
};

// Characteristic UUID: data
static CONST uint8_t registerDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(REGISTER_DATA_UUID),
};

// Characteristic UUID: config
static CONST uint8_t registerAddressUUID[TI_UUID_SIZE] =
{
  TI_UUID(REGISTER_ADDR_UUID),
};

// Characteristic UUID: period
Пример #7
0
 */

/*********************************************************************
 * EXTERNAL FUNCTIONS
 */

/*********************************************************************
 * LOCAL VARIABLES
 */

static humidityCBs_t *humid_AppCBs = NULL;

// Humidity Service UUID
CONST uint8 humidServUUID[TI_UUID_SIZE] =
{
  TI_UUID(HUMIDITY_SERV_UUID),
};

// Humidity Characteristic value Data UUID
CONST uint8 humidDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(HUMIDITY_DATA_UUID),
};

// Humidity Characteristic value Configuration UUID
CONST uint8 humidCfgUUID[TI_UUID_SIZE] =
{
  TI_UUID(HUMIDITY_CONF_UUID),
};

Пример #8
0
/*********************************************************************
 * CONSTANTS
 */

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Gyroscope Service UUID
CONST uint8 gyroServUUID[TI_UUID_SIZE] =
{
  TI_UUID(GYROSCOPE_SERV_UUID),
};

// Gyroscope Characteristic value Data UUID
CONST uint8 gyroDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(GYROSCOPE_DATA_UUID),
};

// Gyroscooe Characteristic value Configuration UUID
CONST uint8 gyroCfgUUID[TI_UUID_SIZE] =
{
  TI_UUID(GYROSCOPE_CONF_UUID),
};

#define DISPLAY_DATA_DESCR        "Display Data"
#define DISPLAY_CONF_DESCR        "Display Control"
#endif

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Service UUID
static CONST uint8_t sensorServiceUUID[TI_UUID_SIZE] =
{
  TI_UUID(DISPLAY_SERV_UUID),
};

// Characteristic UUID: data
static CONST uint8_t displayDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(DISPLAY_DATA_UUID),
};

// Characteristic UUID: control
static CONST uint8_t displayControlUUID[TI_UUID_SIZE] =
{
  TI_UUID(DISPLAY_CONF_UUID),
};

 */

/*********************************************************************
 * EXTERNAL FUNCTIONS
 */

/*********************************************************************
 * LOCAL VARIABLES
 */

static irTempCBs_t *irTemp_AppCBs = NULL;

// IR Temperatur Service UUID
CONST uint8 irTempServUUID[TI_UUID_SIZE] =
{
  TI_UUID(IRTEMPERATURE_SERV_UUID),
};

// IR Temp Characteristic value Data UUID
CONST uint8 irTempDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(IRTEMPERATURE_DATA_UUID),
};

// IR Temp Characteristic value Configuration UUID
CONST uint8 irTempConfUUID[TI_UUID_SIZE] =
{
  TI_UUID(IRTEMPERATURE_CONF_UUID),
};

Пример #11
0
/*********************************************************************
 * CONSTANTS
 */

/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * GLOBAL VARIABLES
 */

// Accelerometer Service UUID
CONST uint8 accelServUUID[TI_UUID_SIZE] =
{
  TI_UUID(ACCELEROMETER_SERV_UUID),
};

// Accelerometer Characteristic value Data UUID
CONST uint8 accelDataUUID[TI_UUID_SIZE] =
{
  TI_UUID(ACCELEROMETER_DATA_UUID),
};

// Accelerometer Characteristic value Configuration UUID
CONST uint8 accelCfgUUID[TI_UUID_SIZE] =
{
  TI_UUID(ACCELEROMETER_CONF_UUID),
};

// Accelerometer Characteristic value Configuration UUID