Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Fitness Machine Service Server

This service exposes training-related data in the sports and fitness environment, which allows a Server (e.g., a fitness machine) to send training-related data to a Client. More...

Detailed Description

This service exposes training-related data in the sports and fitness environment, which allows a Server (e.g., a fitness machine) to send training-related data to a Client.

Data Structures

struct  st_ble_ftms_evt_data_t
 Fitness Machine Service event data. More...
 
struct  st_ble_ftms_init_param_t
 Fitness Machine Service initialization parameters. More...
 
struct  st_ble_ftms_connect_param_t
 Fitness Machine Service connection parameters. More...
 
struct  st_ble_ftms_disconnect_param_t
 Fitness Machine Service disconnection parameters. More...
 
struct  st_ble_ftms_fitness_machine_feature_t
 Fitness Machine Feature characteristic parameters. More...
 
struct  st_ble_ftms_treadmill_data_t
 Treadmill Data characteristic parameters. More...
 
struct  st_ble_ftms_cross_trainer_data_t
 Cross Trainer Data characteristic parameters. More...
 
struct  st_ble_ftms_step_climber_data_t
 Step Climber Data characteristic parameters. More...
 
struct  st_ble_ftms_stair_climber_data_t
 Stair Climber Data characteristic parameters. More...
 
struct  st_ble_ftms_rower_data_t
 Rower Data characteristic parameters. More...
 
struct  st_ble_ftms_indoor_bike_data_t
 Indoor Bike Data characteristic parameters. More...
 
struct  st_ble_ftms_training_status_t
 Training Status characteristic parameters. More...
 
struct  st_ble_ftms_supported_speed_range_t
 Supported Speed Range characteristic parameters. More...
 
struct  st_ble_ftms_supported_inclination_range_t
 Supported Inclination Range characteristic parameters. More...
 
struct  st_ble_ftms_supported_resistance_level_range_t
 Supported Resistance Level Range characteristic parameters. More...
 
struct  st_ble_ftms_supported_power_range_t
 Supported Power Range characteristic parameters. More...
 
struct  st_ble_ftms_supported_heart_rate_range_t
 Supported Heart Rate Range characteristic parameters. More...
 
struct  st_ble_ftms_fitness_machine_control_point_t
 Fitness Machine Control Point characteristic parameters. More...
 
struct  st_ble_ftms_fitness_machine_status_t
 Fitness Machine Status characteristic parameters. More...
 

Macros

#define BLE_FTMS_TRAINING_STATUS_STRING_LEN   (100)
 Training Status String Length. More...
 

Typedefs

typedef void(* ble_ftms_app_cb_t) (uint16_t type, ble_status_t result, st_ble_ftms_evt_data_t *p_data)
 Fitness Machine Service event callback. More...
 

Enumerations

enum  e_ble_ftms_event_t {
  BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_HDL_VAL_CNF,
  BLE_FTMS_EVENT_TREADMILL_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_TREADMILL_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_CROSS_TRAINER_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_CROSS_TRAINER_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_STEP_CLIMBER_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_STEP_CLIMBER_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_STAIR_CLIMBER_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_STAIR_CLIMBER_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_ROWER_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_ROWER_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_INDOOR_BIKE_DATA_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_INDOOR_BIKE_DATA_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_TRAINING_STATUS_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_TRAINING_STATUS_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_FITNESS_MACHINE_STATUS_CLI_CNFG_ENABLED,
  BLE_FTMS_EVENT_FITNESS_MACHINE_STATUS_CLI_CNFG_DISABLED,
  BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_WRITE_REQ,
  BLE_FTMS_EVENT_FITNESS_MACHINE_FEATURE_READ_REQ,
  BLE_FTMS_EVENT_TRAINING_STATUS_READ_REQ,
  BLE_FTMS_EVENT_SUPPORTED_SPEED_RANGE_READ_REQ,
  BLE_FTMS_EVENT_SUPPORTED_INCLINATION_RANGE_READ_REQ,
  BLE_FTMS_EVENT_SUPPORTED_RESISTANCE_LEVEL_RANGE_READ_REQ,
  BLE_FTMS_EVENT_SUPPORTED_POWER_RANGE_READ_REQ,
  BLE_FTMS_EVENT_SUPPORTED_HEART_RATE_RANGE_READ_REQ
}
 Fitness Machine Service event type. More...
 
enum  e_ble_ftms_training_status_t {
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_OTHER = 0,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_IDLE = 1,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_WARMING_UP = 2,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_LOW_INTENSITY_INTERVAL = 3,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_HIGH_INTENSITY_INTERVAL = 4,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_RECOVERY_INTERVAL = 5,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_ISOMETRIC = 6,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_HEART_RATE_CONTROL = 7,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_FITNESS_TEST = 8,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_SPEED_OUTSIDE_OF_CONTROL_REGION___LOW = 9,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_SPEED_OUTSIDE_OF_CONTROL_REGION___HIGH = 10,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_COOL_DOWN = 11,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_WATT_CONTROL = 12,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_MANUAL_MODE__QUICK_START_ = 13,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_PRE_WORKOUT = 14,
  BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_POST_WORKOUT = 15
}
 Training Status enumeration. More...
 
enum  e_ble_ftms_fitness_machine_control_point_op_code_t {
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_REQUEST_CONTROL = 0,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_RESET = 1,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_SPEED = 2,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_INCLINATION = 3,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_RESISTANCE_LEVEL = 4,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_POWER = 5,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_HEART_RATE = 6,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_START_OR_RESUME = 7,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_STOP_OR_PAUSE = 8,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_EXPENDED_ENERGY = 9,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_NUMBER_OF_STEPS = 10,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_NUMBER_OF_STRIDES = 11,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_DISTANCE = 12,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TRAINING_TIME = 13,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_TWO_HEART_RATE_ZONES = 14,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_THREE_HEART_RATE_ZONES = 15,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_FIVE_HEART_RATE_ZONES = 16,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_INDOOR_BIKE_SIMULATION_PARAMETERS = 17,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_WHEEL_CIRCUMFERENCE = 18,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SPIN_DOWN_CONTROL = 19,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_CADENCE = 20,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_RESPONSE_CODE = 128
}
 Op Code enumeration. More...
 
enum  e_ble_ftms_fitness_machine_control_point_control_information_t {
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_STOP = 1,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_PAUSE = 2
}
 Control Information enumeration. More...
 
enum  e_ble_ftms_fitness_machine_control_point_control_parameter_t {
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_START = 1,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_IGNORE = 2
}
 Control Parameter enumeration. More...
 
enum  e_ble_ftms_fitness_machine_control_point_result_code_t {
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_SUCCESS = 1,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_OP_CODE_NOT_SUPPORTED = 2,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_INVALID_PARAMETER = 3,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_OPERATION_FAILED = 4,
  BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_CONTROL_NOT_PERMITTED = 5
}
 Result Code enumeration. More...
 
enum  e_ble_ftms_fitness_machine_status_op_code_t {
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_RESET = 1,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STOPPED_OR_PAUSED_BY_THE_USER = 2,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STOPPED_BY_SAFETY_KEY = 3,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STARTED_OR_RESUMED_BY_THE_USER = 4,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_SPEED_CHANGED = 5,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_INCLINE_CHANGED = 6,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_RESISTANCE_LEVEL_CHANGED = 7,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_POWER_CHANGED = 8,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_HEART_RATE_CHANGED = 9,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_EXPENDED_ENERGY_CHANGED = 10,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_NUMBER_OF_STEPS_CHANGED = 11,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_NUMBER_OF_STRIDES_CHANGED = 12,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_DISTANCE_CHANGED = 13,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TRAINING_TIME_CHANGED = 14,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_TWO_HEART_RATE_ZONES_CHANGED = 15,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_THREE_HEART_RATE_ZONES_CHANGED = 16,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_FIVE_HEART_RATE_ZONES_CHANGED = 17,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_INDOOR_BIKE_SIMULATION_PARAMETERS_CHANGED = 18,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_WHEEL_CIRCUMFERENCE_CHANGED = 19,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_SPIN_DOWN_STATUS = 20,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_CADENCE_CHANGED = 21,
  BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_CONTROL_PERMISSION_LOST = 255
}
 Op Code enumeration. More...
 
enum  e_ble_ftms_fitness_machine_status_control_information_t {
  BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_STOP = 1,
  BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_PAUSE = 2
}
 Control Information enumeration. More...
 
enum  e_ble_ftms_fitness_machine_status_spindown_status_t {
  BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_RESERVED_FOR_FUTURE_USE = 0,
  BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_SPIN_DOWN_REQUESTED = 1,
  BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_SUCCESS = 2,
  BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_ERROR = 3,
  BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_STOP_PEDALING = 4
}
 Spin Down Status enumeration. More...
 

Functions

ble_status_t R_BLE_FTMS_Init (const st_ble_ftms_init_param_t *p_param)
 Initialize Fitness Machine Service. More...
 
ble_status_t R_BLE_FTMS_Connect (uint16_t conn_hdl, const st_ble_ftms_connect_param_t *p_param)
 Perform Fitness Machine Service connection settings. More...
 
ble_status_t R_BLE_FTMS_Disconnect (uint16_t conn_hdl, st_ble_ftms_disconnect_param_t *p_param)
 Retrieve Fitness Machine Service connection specific settings before disconnection. More...
 
ble_status_t R_BLE_FTMS_GetFitnessMachineFeature (st_ble_ftms_fitness_machine_feature_t *p_app_value)
 Get Fitness Machine Feature characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetFitnessMachineFeature (const st_ble_ftms_fitness_machine_feature_t *p_app_value)
 Set Fitness Machine Feature characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_NotifyTreadmillData (uint16_t conn_hdl, const st_ble_ftms_treadmill_data_t *p_app_value)
 Send Treadmill Data notification. More...
 
ble_status_t R_BLE_FTMS_NotifyCrossTrainerData (uint16_t conn_hdl, const st_ble_ftms_cross_trainer_data_t *p_app_value)
 Send Cross Trainer Data notification. More...
 
ble_status_t R_BLE_FTMS_NotifyStepClimberData (uint16_t conn_hdl, const st_ble_ftms_step_climber_data_t *p_app_value)
 Send Step Climber Data notification. More...
 
ble_status_t R_BLE_FTMS_NotifyStairClimberData (uint16_t conn_hdl, const st_ble_ftms_stair_climber_data_t *p_app_value)
 Send Stair Climber Data notification. More...
 
ble_status_t R_BLE_FTMS_NotifyRowerData (uint16_t conn_hdl, const st_ble_ftms_rower_data_t *p_app_value)
 Send Rower Data notification. More...
 
ble_status_t R_BLE_FTMS_NotifyIndoorBikeData (uint16_t conn_hdl, const st_ble_ftms_indoor_bike_data_t *p_app_value)
 Send Indoor Bike Data notification. More...
 
ble_status_t R_BLE_FTMS_GetTrainingStatus (st_ble_ftms_training_status_t *p_app_value)
 Get Training Status characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetTrainingStatus (const st_ble_ftms_training_status_t *p_app_value)
 Set Training Status characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_NotifyTrainingStatus (uint16_t conn_hdl, const st_ble_ftms_training_status_t *p_app_value)
 Send Training Status notification. More...
 
ble_status_t R_BLE_FTMS_GetSupportedSpeedRange (st_ble_ftms_supported_speed_range_t *p_app_value)
 Get Supported Speed Range characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetSupportedSpeedRange (const st_ble_ftms_supported_speed_range_t *p_app_value)
 Set Supported Speed Range characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_GetSupportedInclinationRange (st_ble_ftms_supported_inclination_range_t *p_app_value)
 Get Supported Inclination Range characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetSupportedInclinationRange (const st_ble_ftms_supported_inclination_range_t *p_app_value)
 Set Supported Inclination Range characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_GetSupportedResistanceLevelRange (st_ble_ftms_supported_resistance_level_range_t *p_app_value)
 Get Supported Resistance Level Range characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetSupportedResistanceLevelRange (const st_ble_ftms_supported_resistance_level_range_t *p_app_value)
 Set Supported Resistance Level Range characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_GetSupportedPowerRange (st_ble_ftms_supported_power_range_t *p_app_value)
 Get Supported Power Range characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetSupportedPowerRange (const st_ble_ftms_supported_power_range_t *p_app_value)
 Set Supported Power Range characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_GetSupportedHeartRateRange (st_ble_ftms_supported_heart_rate_range_t *p_app_value)
 Get Supported Heart Rate Range characteristic value from local GATT database. More...
 
ble_status_t R_BLE_FTMS_SetSupportedHeartRateRange (const st_ble_ftms_supported_heart_rate_range_t *p_app_value)
 Set Supported Heart Rate Range characteristic value to local GATT database. More...
 
ble_status_t R_BLE_FTMS_IndicateFitnessMachineControlPoint (uint16_t conn_hdl, const st_ble_ftms_fitness_machine_control_point_t *p_app_value)
 Send Fitness Machine Control Point indication. More...
 
ble_status_t R_BLE_FTMS_NotifyFitnessMachineStatus (uint16_t conn_hdl, const st_ble_ftms_fitness_machine_status_t *p_app_value)
 Send Fitness Machine Status notification. More...
 
uint32_t R_BLE_FTMS_GetVersion (void)
 Return version of the FTMC service server. More...
 

Macro Definition Documentation

◆ BLE_FTMS_TRAINING_STATUS_STRING_LEN

#define BLE_FTMS_TRAINING_STATUS_STRING_LEN   (100)

Training Status String Length.

Typedef Documentation

◆ ble_ftms_app_cb_t

typedef void(* ble_ftms_app_cb_t) (uint16_t type, ble_status_t result, st_ble_ftms_evt_data_t *p_data)

Fitness Machine Service event callback.

Enumeration Type Documentation

◆ e_ble_ftms_event_t

Fitness Machine Service event type.

Enumerator
BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_CLI_CNFG_ENABLED 

Fitness Machine Control Point characteristic cli cnfg enabled event

BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_CLI_CNFG_DISABLED 

Fitness Machine Control Point characteristic cli cnfg disabled event

BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_HDL_VAL_CNF 

Fitness Machine Control Point characteristic handle value configuration event

BLE_FTMS_EVENT_TREADMILL_DATA_CLI_CNFG_ENABLED 

Treadmill Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_TREADMILL_DATA_CLI_CNFG_DISABLED 

Treadmill Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_CROSS_TRAINER_DATA_CLI_CNFG_ENABLED 

Cross Trainer Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_CROSS_TRAINER_DATA_CLI_CNFG_DISABLED 

Cross Trainer Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_STEP_CLIMBER_DATA_CLI_CNFG_ENABLED 

Step Climber Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_STEP_CLIMBER_DATA_CLI_CNFG_DISABLED 

Step Climber Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_STAIR_CLIMBER_DATA_CLI_CNFG_ENABLED 

Stair Climber Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_STAIR_CLIMBER_DATA_CLI_CNFG_DISABLED 

Stair Climber Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_ROWER_DATA_CLI_CNFG_ENABLED 

Rower Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_ROWER_DATA_CLI_CNFG_DISABLED 

Rower Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_INDOOR_BIKE_DATA_CLI_CNFG_ENABLED 

Indoor Bike Data characteristic cli cnfg enabled event

BLE_FTMS_EVENT_INDOOR_BIKE_DATA_CLI_CNFG_DISABLED 

Indoor Bike Data characteristic cli cnfg disabled event

BLE_FTMS_EVENT_TRAINING_STATUS_CLI_CNFG_ENABLED 

Training Status characteristic cli cnfg enabled event

BLE_FTMS_EVENT_TRAINING_STATUS_CLI_CNFG_DISABLED 

Training Status characteristic cli cnfg disabled event

BLE_FTMS_EVENT_FITNESS_MACHINE_STATUS_CLI_CNFG_ENABLED 

Fitness Machine Status characteristic cli cnfg enabled event

BLE_FTMS_EVENT_FITNESS_MACHINE_STATUS_CLI_CNFG_DISABLED 

Fitness Machine Status characteristic cli cnfg disabled event

BLE_FTMS_EVENT_FITNESS_MACHINE_CONTROL_POINT_WRITE_REQ 

Fitness Machine Control Point characteristic write request event

BLE_FTMS_EVENT_FITNESS_MACHINE_FEATURE_READ_REQ 

Fitness Machine Feature characteristic read request event

BLE_FTMS_EVENT_TRAINING_STATUS_READ_REQ 

Training Status characteristic read request event

BLE_FTMS_EVENT_SUPPORTED_SPEED_RANGE_READ_REQ 

Supported Speed Range characteristic read request event

BLE_FTMS_EVENT_SUPPORTED_INCLINATION_RANGE_READ_REQ 

Supported Inclination Range characteristic read request event

BLE_FTMS_EVENT_SUPPORTED_RESISTANCE_LEVEL_RANGE_READ_REQ 

Supported Resistance Level Range characteristic read request event

BLE_FTMS_EVENT_SUPPORTED_POWER_RANGE_READ_REQ 

Supported Power Range characteristic read request event

BLE_FTMS_EVENT_SUPPORTED_HEART_RATE_RANGE_READ_REQ 

Supported Heart Rate Range characteristic read request event

◆ e_ble_ftms_training_status_t

Training Status enumeration.

Enumerator
BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_OTHER 

Training Status Other

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_IDLE 

Training Status Idle

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_WARMING_UP 

Training Status Warming Up

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_LOW_INTENSITY_INTERVAL 

Training Status Low Intensity Interval

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_HIGH_INTENSITY_INTERVAL 

Training Status High Intensity Interval

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_RECOVERY_INTERVAL 

Training Status Recovery Interval

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_ISOMETRIC 

Training Status sometric

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_HEART_RATE_CONTROL 

Training Status Heart Rate Control

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_FITNESS_TEST 

Training Status Fitness Test

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_SPEED_OUTSIDE_OF_CONTROL_REGION___LOW 

Training Status Speed Outside of Control Region - Low (increase speed to return to controllable region)

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_SPEED_OUTSIDE_OF_CONTROL_REGION___HIGH 

Training Status Speed Outside of Control Region - High (decrease speed to return to controllable region)

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_COOL_DOWN 

Training Status Cool Down

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_WATT_CONTROL 

Training Status Watt Control

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_MANUAL_MODE__QUICK_START_ 

Training Status Manual Mode (Quick Start)

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_PRE_WORKOUT 

Training Status Pre-Workout

BLE_FTMS_TRAINING_STATUS_TRAINING_STATUS_POST_WORKOUT 

Training Status Post-Workout

◆ e_ble_ftms_fitness_machine_control_point_op_code_t

Op Code enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_REQUEST_CONTROL 

Op Code for Request Control

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_RESET 

Op Code for Reset

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_SPEED 

Op Code for Set Target Speed

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_INCLINATION 

Op Code for Set Target Inclination

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_RESISTANCE_LEVEL 

Op Code for Set Target Resistance Level

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_POWER 

Op Code for Set Target Power

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGET_HEART_RATE 

Op Code for Set Target Heart Rate

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_START_OR_RESUME 

Op Code for Start or Resume

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_STOP_OR_PAUSE 

Op Code for Stop or Pause

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_EXPENDED_ENERGY 

Op Code for Set Targeted Expended Energy

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_NUMBER_OF_STEPS 

Op Code for Set Targeted Number of Steps

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_NUMBER_OF_STRIDES 

Op Code for Set Targeted Number of Strides

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_DISTANCE 

Op Code for Set Targeted Distance

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TRAINING_TIME 

Op Code for Set Targeted Training Time

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_TWO_HEART_RATE_ZONES 

Op Code for Set Targeted Time in Two Heart Rate Zones

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_THREE_HEART_RATE_ZONES 

Op Code for Set Targeted Time in Three Heart Rate Zones

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_TIME_IN_FIVE_HEART_RATE_ZONES 

Op Code for Set Targeted Time in Five Heart Rate Zones

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_INDOOR_BIKE_SIMULATION_PARAMETERS 

Op Code for Set Indoor Bike Simulation Parameters

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_WHEEL_CIRCUMFERENCE 

Op Code for Set Wheel Circumference

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SPIN_DOWN_CONTROL 

Op Code for Spin Down Control

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_SET_TARGETED_CADENCE 

Op Code for Set Targeted Cadence

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_OP_CODE_RESPONSE_CODE 

Op Code for Response Code

◆ e_ble_ftms_fitness_machine_control_point_control_information_t

Control Information enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_RESERVED_FOR_FUTURE_USE 

Control Information Value Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_STOP 

Control Information Value to Stop

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_INFORMATION_PAUSE 

Control Information Value to Pause

◆ e_ble_ftms_fitness_machine_control_point_control_parameter_t

Control Parameter enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_RESERVED_FOR_FUTURE_USE 

Control Parameter Value Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_START 

Control Parameter Value to Start

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_CONTROL_PARAMETER_IGNORE 

Control Parameter Value to Ignore

◆ e_ble_ftms_fitness_machine_control_point_result_code_t

Result Code enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_RESERVED_FOR_FUTURE_USE 

Result Code Value Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_SUCCESS 

Result Code Value for Success

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_OP_CODE_NOT_SUPPORTED 

Result Code Value for Op Code Not Supported

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_INVALID_PARAMETER 

Result Code Value for Invalid Parameter

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_OPERATION_FAILED 

Result Code Value for Operation Failed

BLE_FTMS_FITNESS_MACHINE_CONTROL_POINT_RESULT_CODE_CONTROL_NOT_PERMITTED 

Result Code Value for Control Not Permitted

◆ e_ble_ftms_fitness_machine_status_op_code_t

Op Code enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_RESERVED_FOR_FUTURE_USE 

Op Code Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_RESET 

Op Code for Reset

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STOPPED_OR_PAUSED_BY_THE_USER 

Op Code for Fitness Machine Stopped or Paused by the User

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STOPPED_BY_SAFETY_KEY 

Op Code for Fitness Machine Stopped by Safety Key

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_FITNESS_MACHINE_STARTED_OR_RESUMED_BY_THE_USER 

Op Code for Fitness Machine Started or Resumed by the User

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_SPEED_CHANGED 

Op Code for Target Speed Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_INCLINE_CHANGED 

Op Code for Target Incline Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_RESISTANCE_LEVEL_CHANGED 

Op Code for Target Resistance Level Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_POWER_CHANGED 

Op Code for Target Power Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGET_HEART_RATE_CHANGED 

Op Code for Target Heart Rate Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_EXPENDED_ENERGY_CHANGED 

Op Code for Targeted Expended Energy Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_NUMBER_OF_STEPS_CHANGED 

Op Code for Targeted Number of Steps Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_NUMBER_OF_STRIDES_CHANGED 

Op Code for Targeted Number of Strides Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_DISTANCE_CHANGED 

Op Code for Targeted Distance Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TRAINING_TIME_CHANGED 

Op Code for Targeted Training Time Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_TWO_HEART_RATE_ZONES_CHANGED 

Op Code for Targeted Time in Two Heart Rate Zones Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_THREE_HEART_RATE_ZONES_CHANGED 

Op Code for Targeted Time in Three Heart Rate Zones Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_TIME_IN_FIVE_HEART_RATE_ZONES_CHANGED 

Op Code for Targeted Time in Five Heart Rate Zones Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_INDOOR_BIKE_SIMULATION_PARAMETERS_CHANGED 

Op Code for Indoor Bike Simulation Parameters Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_WHEEL_CIRCUMFERENCE_CHANGED 

Op Code for Wheel Circumference Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_SPIN_DOWN_STATUS 

Op Code for Spin Down Status

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_TARGETED_CADENCE_CHANGED 

Op Code for Targeted Cadence Changed

BLE_FTMS_FITNESS_MACHINE_STATUS_OP_CODE_CONTROL_PERMISSION_LOST 

Op Code for Control Permission Lost

◆ e_ble_ftms_fitness_machine_status_control_information_t

Control Information enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_RESERVED_FOR_FUTURE_USE 

Control Information Value Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_STOP 

Control Information Value to Stop

BLE_FTMS_FITNESS_MACHINE_STATUS_CONTROL_INFORMATION_PAUSE 

Control Information Value to Pause

◆ e_ble_ftms_fitness_machine_status_spindown_status_t

Spin Down Status enumeration.

Enumerator
BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_RESERVED_FOR_FUTURE_USE 

Spin Down Status Value Reserved for Future Use

BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_SPIN_DOWN_REQUESTED 

Spin Down Status Value for Spin Down Requested

BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_SUCCESS 

Spin Down Status Value for Success

BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_ERROR 

Spin Down Status Value for Error

BLE_FTMS_FITNESS_MACHINE_STATUS_SPIN_DOWN_STATUS_STOP_PEDALING 

Spin Down Status Value for Stop Pedaling

Function Documentation

◆ R_BLE_FTMS_Init()

ble_status_t R_BLE_FTMS_Init ( const st_ble_ftms_init_param_t p_param)

Initialize Fitness Machine Service.

This function shall be called once at startup.

Parameters
[in]p_paramPointer to Fitness Machine Service initialization parameters.
Returns

◆ R_BLE_FTMS_Connect()

ble_status_t R_BLE_FTMS_Connect ( uint16_t  conn_hdl,
const st_ble_ftms_connect_param_t p_param 
)

Perform Fitness Machine Service connection settings.

This function shall be called on each connection establishment.

Parameters
[in]conn_hdlConnection handle.
[in]p_paramPointer to Connection parameters.
Returns
ble_status_t

◆ R_BLE_FTMS_Disconnect()

ble_status_t R_BLE_FTMS_Disconnect ( uint16_t  conn_hdl,
st_ble_ftms_disconnect_param_t p_param 
)

Retrieve Fitness Machine Service connection specific settings before disconnection.

This function shall be called on each disconnection.

Parameters
[in]conn_hdlConnection handle.
[in]p_paramPointer to Disconnection parameters.
Returns
ble_status_t

◆ R_BLE_FTMS_GetFitnessMachineFeature()

ble_status_t R_BLE_FTMS_GetFitnessMachineFeature ( st_ble_ftms_fitness_machine_feature_t p_app_value)

Get Fitness Machine Feature characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Fitness Machine Feature characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetFitnessMachineFeature()

ble_status_t R_BLE_FTMS_SetFitnessMachineFeature ( const st_ble_ftms_fitness_machine_feature_t p_app_value)

Set Fitness Machine Feature characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Fitness Machine Feature characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyTreadmillData()

ble_status_t R_BLE_FTMS_NotifyTreadmillData ( uint16_t  conn_hdl,
const st_ble_ftms_treadmill_data_t p_app_value 
)

Send Treadmill Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Treadmill Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyCrossTrainerData()

ble_status_t R_BLE_FTMS_NotifyCrossTrainerData ( uint16_t  conn_hdl,
const st_ble_ftms_cross_trainer_data_t p_app_value 
)

Send Cross Trainer Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Cross Trainer Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyStepClimberData()

ble_status_t R_BLE_FTMS_NotifyStepClimberData ( uint16_t  conn_hdl,
const st_ble_ftms_step_climber_data_t p_app_value 
)

Send Step Climber Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Step Climber Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyStairClimberData()

ble_status_t R_BLE_FTMS_NotifyStairClimberData ( uint16_t  conn_hdl,
const st_ble_ftms_stair_climber_data_t p_app_value 
)

Send Stair Climber Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Stair Climber Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyRowerData()

ble_status_t R_BLE_FTMS_NotifyRowerData ( uint16_t  conn_hdl,
const st_ble_ftms_rower_data_t p_app_value 
)

Send Rower Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Rower Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyIndoorBikeData()

ble_status_t R_BLE_FTMS_NotifyIndoorBikeData ( uint16_t  conn_hdl,
const st_ble_ftms_indoor_bike_data_t p_app_value 
)

Send Indoor Bike Data notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valueIndoor Bike Data value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_GetTrainingStatus()

ble_status_t R_BLE_FTMS_GetTrainingStatus ( st_ble_ftms_training_status_t p_app_value)

Get Training Status characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Retrieved Training Status characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetTrainingStatus()

ble_status_t R_BLE_FTMS_SetTrainingStatus ( const st_ble_ftms_training_status_t p_app_value)

Set Training Status characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Training Status characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyTrainingStatus()

ble_status_t R_BLE_FTMS_NotifyTrainingStatus ( uint16_t  conn_hdl,
const st_ble_ftms_training_status_t p_app_value 
)

Send Training Status notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Training Status value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_GetSupportedSpeedRange()

ble_status_t R_BLE_FTMS_GetSupportedSpeedRange ( st_ble_ftms_supported_speed_range_t p_app_value)

Get Supported Speed Range characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Supported Speed Range characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetSupportedSpeedRange()

ble_status_t R_BLE_FTMS_SetSupportedSpeedRange ( const st_ble_ftms_supported_speed_range_t p_app_value)

Set Supported Speed Range characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Supported Speed Range characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_GetSupportedInclinationRange()

ble_status_t R_BLE_FTMS_GetSupportedInclinationRange ( st_ble_ftms_supported_inclination_range_t p_app_value)

Get Supported Inclination Range characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Supported Inclination Range characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetSupportedInclinationRange()

ble_status_t R_BLE_FTMS_SetSupportedInclinationRange ( const st_ble_ftms_supported_inclination_range_t p_app_value)

Set Supported Inclination Range characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Supported Inclination Range characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_GetSupportedResistanceLevelRange()

ble_status_t R_BLE_FTMS_GetSupportedResistanceLevelRange ( st_ble_ftms_supported_resistance_level_range_t p_app_value)

Get Supported Resistance Level Range characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Supported Resistance Level Range characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetSupportedResistanceLevelRange()

ble_status_t R_BLE_FTMS_SetSupportedResistanceLevelRange ( const st_ble_ftms_supported_resistance_level_range_t p_app_value)

Set Supported Resistance Level Range characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Supported Resistance Level Range characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_GetSupportedPowerRange()

ble_status_t R_BLE_FTMS_GetSupportedPowerRange ( st_ble_ftms_supported_power_range_t p_app_value)

Get Supported Power Range characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Supported Power Range characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetSupportedPowerRange()

ble_status_t R_BLE_FTMS_SetSupportedPowerRange ( const st_ble_ftms_supported_power_range_t p_app_value)

Set Supported Power Range characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Supported Power Range characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_GetSupportedHeartRateRange()

ble_status_t R_BLE_FTMS_GetSupportedHeartRateRange ( st_ble_ftms_supported_heart_rate_range_t p_app_value)

Get Supported Heart Rate Range characteristic value from local GATT database.

Parameters
[out]p_app_valuePointer to Supported Heart Rate Range characteristic value.
Returns
ble_status_t

◆ R_BLE_FTMS_SetSupportedHeartRateRange()

ble_status_t R_BLE_FTMS_SetSupportedHeartRateRange ( const st_ble_ftms_supported_heart_rate_range_t p_app_value)

Set Supported Heart Rate Range characteristic value to local GATT database.

Parameters
[in]p_app_valuePointer to Supported Heart Rate Range characteristic value to set.
Returns
ble_status_t

◆ R_BLE_FTMS_IndicateFitnessMachineControlPoint()

ble_status_t R_BLE_FTMS_IndicateFitnessMachineControlPoint ( uint16_t  conn_hdl,
const st_ble_ftms_fitness_machine_control_point_t p_app_value 
)

Send Fitness Machine Control Point indication.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Fitness Machine Control Point value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_NotifyFitnessMachineStatus()

ble_status_t R_BLE_FTMS_NotifyFitnessMachineStatus ( uint16_t  conn_hdl,
const st_ble_ftms_fitness_machine_status_t p_app_value 
)

Send Fitness Machine Status notification.

Parameters
[in]conn_hdlConnection handle.
[in]p_app_valuePointer to Fitness Machine Status value to send.
Returns
ble_status_t

◆ R_BLE_FTMS_GetVersion()

uint32_t R_BLE_FTMS_GetVersion ( void  )

Return version of the FTMC service server.

Returns
version