
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
Page 85 of 117
thisisant.
com
7.3.20
gfit_fep_send_custom_event (0xB0)
Command: Instruct the module to send an event to the display over the ANT+ FE -C channel and over BLE,
using the G.FIT Custom Service.
Valid State: READY, IN USE, FINISHED
Table 7-52. gfit_fep_send_custom_event command message
Byte #
Name
Length
Description
0
Sync
1 byte
Fixed value of 10100100 or 10100101
(Refer to the
Interfacing with ANT General Purpose Chipsets and
Modules document for details.)
1
Length
1 byte
Variable Set to 0x08 if Number of Transmissions (Byte 10) is
specified or 0x07 if not.
2
Message ID
1 byte
Set to 0xE2 (command)
3
Sub-Message ID
1 byte
Set to 0xB0 (gfit_fep_send_custom_event)
4
–
9/10
Payload
6 bytes
Byte 4
–
Application defined op code, in the range E0-FF (inclusive)
Bytes 5
–
9 - Application defined parameter
Bytes 10
–
Optional: Number of Transmissions (if not specified
default of 8 transmission will be used
10/11
Checksum
1 byte
XOR of all previous bytes including the sync byte.
Table 7-53. gfit_fep_send_custom_event response message
Byte #
Name
Length
Description
0
Sync
1 byte
Fixed value of 10100100 or 10100101
(Refer to the
Interfacing with ANT General Purpose Chipsets and
Modules document for details.)
1
Length
1 byte
0x05
2
Response ID
2 bytes
0xE0 (response)
3
0xFE (G.FIT response)
4
Command ID
2 bytes
0xE2 (command)
5
0xB0 (gfit_fep_send_custom_event)
6
Response Code
1 byte
0x00 - GFIT_SUCCESS
0x01 - GFIT_ERROR_INCORRECT_STATE
0x05
–
GFIT_ERROR_INVALID_OP_CODE
0x12 - GFIT_ERROR_INVALID_LENGTH
See Table 7-1 for descriptions.
7
Payload
1 byte
Current State:
0x00
–
State is INVALID
0x01
–
State is OFF
0x02
–
State is READY
0x03
–
State is IN USE
0x04
–
State is PAUSED/FINISHED
8
Checksum
1 byte
XOR of all previous bytes including the sync byte.