Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<WFBikeTrainerDelegate> Protocol Reference

Provides the interface for callback methods used by the WFBikePowerConnection. More...

#import <WFBikeTrainerDelegate.h>

+ Inheritance diagram for <WFBikeTrainerDelegate>:
+ Collaboration diagram for <WFBikeTrainerDelegate>:

Instance Methods

(void) - cpmConnection:didReceiveKurtSetProFlywheelEnabled:spindownEnabled:response:
 
(void) - cpmConnection:didReceiveKurtSpindownResult:
 Invoked when a Kurt InRide Trainer Spindown Result is received. More...
 
(void) - cpmConnection:didReceiveTrainerInitSpindownResponse:
 
(void) - cpmConnection:didReceiveTrainerInitSpindownResponseWithInfo:
 Invoked when a response to the Trainer Init Spindown command is received. More...
 
(void) - cpmConnection:didReceiveTrainerReadModeResponse:mode:
 
(void) - cpmConnection:didReceiveTrainerReadModeResponse:mode:params:
 
(void) - cpmConnection:didReceiveTrainerReadModeResponse:params:info:
 Invoked when a response to the Read Trainer Mode command is received. More...
 
(void) - cpmConnection:didReceiveTrainerRequestAntConnectionResponse:
 Invoked when a response to the Trainer Request ANT Connection command is received. More...
 
(void) - cpmConnection:didReceiveTrainerSpindownResult:temperature:offset:
 Invoked when a Trainer Spindown Result is received. More...
 
(void) - cpmConnection:didSetTrainerGrade:
 
(void) - cpmConnection:didSetTrainerGrade:info:
 Invoked when a response to the Set Trainer Grade command is received. More...
 
(void) - cpmConnection:didSetTrainerMode:params:info:
 Invoked when a response to the Set Trainer Mode command is received. More...
 
(void) - cpmConnection:didSetTrainerMode:status:
 
(void) - cpmConnection:didSetTrainerRollingResistance:
 
(void) - cpmConnection:didSetTrainerRollingResistance:info:
 Invoked when a response to the Set Trainer Rolling Resistance command is received. More...
 
(void) - cpmConnection:didSetTrainerWheelCircumference:
 
(void) - cpmConnection:didSetTrainerWheelCircumference:info:
 Invoked when a response to the Set Trainer Wheel Circumference command is received. More...
 
(void) - cpmConnection:didSetTrainerWindResistance:
 
(void) - cpmConnection:didSetTrainerWindResistance:info:
 Invoked when a response to the Set Trainer Wind Resistance command is received. More...
 
(void) - cpmConnection:didSetTrainerWindSpeed:
 
(void) - cpmConnection:didSetTrainerWindSpeed:info:
 Invoked when a response to the Set Trainer Wind Speed command is received. More...
 

Detailed Description

Provides the interface for callback methods used by the WFBikePowerConnection.

This delegate handles callbacks for commands according to the Wahoo-specific Bike Trainer Profile. For commands used by CSC Profile devices please see the WFBikePowerDelegate.

Method Documentation

- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveKurtSetProFlywheelEnabled: (BOOL proFlywheelEnabled
spindownEnabled: (BOOL spindownEnabled
response: (BOOL bSuccess 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveKurtSpindownResult: (ULONG ulSpindownPeriod 
optional

Invoked when a Kurt InRide Trainer Spindown Result is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
ulSpindownPeriodThe spindown period, in microseconds.
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerInitSpindownResponse: ("Use WFBikeTrainerSpindownCalibratorDelegate class to receive spindown progress callbacks")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerInitSpindownResponseWithInfo: ("Use WFBikeTrainerSpindownCalibratorDelegate class to receive spindown progress callbacks")  __deprecated_msg 
optional

Invoked when a response to the Trainer Init Spindown command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
ucStatusThe command status code (0 for Success).
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerReadModeResponse: (UCHAR ucStatus
mode: ((unavailable("Use cpmConnection:didReceiveTrainerReadModeResponse:mode:params")))  __attribute__ 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerReadModeResponse: (UCHAR ucStatus
mode: (WFBikeTrainerMode_t eMode
params: ("Use cpmConnection:didReceiveTrainerReadModeResponse:params:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerReadModeResponse: (WFBikeTrainerMode_t eMode
params: (NSDictionary *)  params
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Read Trainer Mode command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
ucStatusThe status of the command (0 is Success).
eModeIf the command was successful, the current WFBikeTrainerMode_t.
paramsAn NSDictionary instance containing any parameters associated with the current mode.
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerRequestAntConnectionResponse: (UCHAR ucStatus 
optional

Invoked when a response to the Trainer Request ANT Connection command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
ucStatusThe command status code (0 for Success).
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didReceiveTrainerSpindownResult: (float)  spindownTime
temperature: (float)  spindownTemperature
offset: ("Use WFBikeTrainerSpindownCalibratorDelegate class to receive spindown progress callbacks")  __deprecated_msg 
optional

Invoked when a Trainer Spindown Result is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
spindownTimeThe spindown time value.
spindownTemperatureThe spindown temperature value.
spindownOffsetThe zero offset calibration
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerGrade: ("Use cpmConnection:didSetTrainerGrade:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerGrade: (float)  grade
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Grade command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
gradeThe new trainer grade.
infoStructure containing info regarding the control point command (eg status)
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerMode: (WFBikeTrainerMode_t eMode
params: (NSDictionary *)  params
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Mode command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
eModeThe WFBikeTrainerMode_t specified in the command.
paramsAn NSDictionary instance containing changed parameters associated with the current mode.
infoStructure containing info regarding the control point command (eg status)
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerMode: (WFBikeTrainerMode_t eMode
status: ("Use cpmConnection:didSetTrainerMode:params:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerRollingResistance: ("Use cpmConnection:didSetTrainerRollingResistance:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerRollingResistance: (float)  rollingResistance
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Rolling Resistance command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
rollingResistanceThe new rolling resistance.
infoStructure containing info regarding the control point command (eg status)
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWheelCircumference: ("Use cpmConnection:didSetTrainerWindSpeed:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWheelCircumference: (USHORT wheelCircumference
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Wheel Circumference command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
wheelCircumferenceThe new wheel circumference.
infoStructure containing info regarding the control point command (eg status)
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWindResistance: ("Use cpmConnection:didSetTrainerWindResistance:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWindResistance: (float)  windResistance
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Wind Resistance command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
windResistanceThe new wind resistance.
infoStructure containing info regarding the control point command (eg status)
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWindSpeed: ("Use cpmConnection:didSetTrainerWindSpeed:info:")  __deprecated_msg 
optional
- (void) cpmConnection: (WFBikePowerConnection *)  cpmConn
didSetTrainerWindSpeed: (float)  windSpeed
info: (WFBikeTrainerDelegateInfo_t info 
optional

Invoked when a response to the Set Trainer Wind Speed command is received.

Parameters
cpmConnThe WFBikePowerConnection instance.
windSpeedThe new wind speed.
infoStructure containing info regarding the control point command (eg status)