MAXREFDES73# Code Documentation
V02.00
WEARABLE, GALVANIC SKIN RESPONSE SYSTEM
|
#include "mxc_config.h"
#include <string.h>
#include "wsf_types.h"
#include "bstream.h"
#include "wsf_msg.h"
#include "wsf_trace.h"
#include "hci_api.h"
#include "dm_api.h"
#include "att_api.h"
#include "app_api.h"
#include "app_db.h"
#include "app_ui.h"
#include "app_hw.h"
#include "svc_ch.h"
#include "svc_core.h"
#include "svc_hrs.h"
#include "svc_dis.h"
#include "svc_batt.h"
#include "bas_api.h"
#include "hrps_api.h"
#include "gpio.h"
#include "rtc.h"
Go to the source code of this file.
Data Structures | |
union | fitMsg_t |
Macros | |
#define | LED_ON 0 |
#define | LED_OFF 1 |
#define | LED_PORT 0 |
#define | RED_LED_PIN 7 |
#define | GREEN_LED_PIN 6 |
#define | FIT_MSG_START 0xA0 |
Enumerations | |
enum | { FIT_HR_TIMER_IND = FIT_MSG_START, FIT_BATT_TIMER_IND } |
enum | { FIT_GATT_SC_CCC_IDX, FIT_HRS_HRM_CCC_IDX, FIT_BATT_LVL_CCC_IDX, FIT_NUM_CCC_IDX } |
Functions | |
void | FitHandlerInit (wsfHandlerId_t handlerId) |
void | FitHandler (wsfEventMask_t event, wsfMsgHdr_t *pMsg) |
void | FitStart (void) |
Start the application. | |
Variables | |
uint8_t | BLEadvertising |
uint8_t | BLEconnected |
wsfHandlerId_t | fitHandlerId |
Project: MAXREFDES73 Filename: fit_main.c Description: This module contains the implementation of the BLE profile: Heart Rate Profile. The MAXREFDES73# GSR device communicates with a device for Android based on BLE heart rate profile.
Revision History:
06-02-2015 Rev 02.00 MG Initial release.
Copyright (c) 2011 Wicentric, Inc., all rights reserved. Wicentric confidential and proprietary.
Copyright (C) 2012 Maxim Integrated Products, Inc., All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL MAXIM INTEGRATED PRODUCTS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of Maxim Integrated Products shall not be used except as stated in the Maxim Integrated Products Branding Policy.
The mere transfer of this software does not imply any licenses of trade secrets, proprietary technology, copyrights, patents, trademarks, maskwork rights, or any other form of intellectual property whatsoever. Maxim Integrated Products retains all ownership rights.
Definition in file fit_main.c.
#define FIT_MSG_START 0xA0 |
WSF message event starting value
Definition at line 86 of file fit_main.c.
#define GREEN_LED_PIN 6 |
Definition at line 83 of file fit_main.c.
#define LED_OFF 1 |
Definition at line 79 of file fit_main.c.
#define LED_ON 0 |
Definition at line 78 of file fit_main.c.
#define LED_PORT 0 |
Definition at line 81 of file fit_main.c.
#define RED_LED_PIN 7 |
Definition at line 82 of file fit_main.c.
anonymous enum |
WSF message event enumeration
FIT_HR_TIMER_IND | |
FIT_BATT_TIMER_IND |
Heart rate measurement timer expired Battery measurement timer expired |
Definition at line 89 of file fit_main.c.
anonymous enum |
enumeration of client characteristic configuration descriptors
Definition at line 206 of file fit_main.c.
void FitHandler | ( | wsfEventMask_t | event, |
wsfMsgHdr_t * | pMsg | ||
) |
Definition at line 618 of file fit_main.c.
void FitHandlerInit | ( | wsfHandlerId_t | handlerId | ) |
Definition at line 583 of file fit_main.c.
FitStart | ( | void | ) |
uint8_t BLEadvertising |
Definition at line 160 of file MAXREFDES73.c.
uint8_t BLEconnected |
Definition at line 159 of file MAXREFDES73.c.
wsfHandlerId_t fitHandlerId |
WSF handler ID
Definition at line 228 of file fit_main.c.