This module implements utilities for the Bicycle Speed and Cadence profile. More...
Macros | |
#define | ANT_BSC_OPERATING_TIME_UNIT 2u |
Unit for BSC operating time. More... | |
#define | ANT_BSC_OPERATING_SECONDS(OPERATING_TIME) (((OPERATING_TIME) * ANT_BSC_OPERATING_TIME_UNIT) % 60) |
This macro should be used to get the seconds part of the operating time. | |
#define | ANT_BSC_OPERATING_MINUTES(OPERATING_TIME) ((((OPERATING_TIME) * ANT_BSC_OPERATING_TIME_UNIT) / 60) % 60) |
This macro should be used to get the minutes part of the operating time. | |
#define | ANT_BSC_OPERATING_HOURS(OPERATING_TIME) ((((OPERATING_TIME) * ANT_BSC_OPERATING_TIME_UNIT) / (60 * 60)) % 24) |
This macro should be used to get the hours part of the operating time. | |
#define | ANT_BSC_OPERATING_DAYS(OPERATING_TIME) ((((OPERATING_TIME) * ANT_BSC_OPERATING_TIME_UNIT) / (60 * 60)) / 24) |
This macro should be used to get the days part of the operating time. | |
#define | ANT_BSC_EVENT_TIME_COUNTS_PER_SEC 1024u |
Number of Bicycle Speed or Cadence event time counts per second. More... | |
#define | ANT_BSC_EVENT_TIME_PRECISION 1000u |
BSC event time display required precision. More... | |
#define | ANT_BSC_EVENT_TIME_SEC(EVENT_TIME) ((EVENT_TIME) / ANT_BSC_EVENT_TIME_COUNTS_PER_SEC) |
This macro should be used to get the seconds part of the BSC event time. | |
#define | ANT_BSC_EVENT_TIME_MSEC(EVENT_TIME) |
This macro should be used to get the milliseconds part of the BSC event time. More... | |
#define | ANT_BSC_BAT_VOLTAGE_PRECISION 1000u |
Battery voltage display required precision. More... | |
#define | ANT_BSC_BAT_VOLTAGE_FRACTION_PER_VOLT 256u |
Bike Speed and Cadence profile, unit divisor of the fractional part of the battery voltage. More... | |
#define | ANT_BSC_BAT_VOLTAGE_FRACTION_MV(VOLT_FRACT) |
This macro should be used to get the mV part of the BSC battery voltage. More... | |
This module implements utilities for the Bicycle Speed and Cadence profile.
#define ANT_BSC_BAT_VOLTAGE_FRACTION_MV | ( | VOLT_FRACT | ) |
This macro should be used to get the mV part of the BSC battery voltage.
#define ANT_BSC_BAT_VOLTAGE_FRACTION_PER_VOLT 256u |
Bike Speed and Cadence profile, unit divisor of the fractional part of the battery voltage.
According to the ANT BSC specification, the battery voltage fraction unit is (1/256) V.
#define ANT_BSC_BAT_VOLTAGE_PRECISION 1000u |
Battery voltage display required precision.
This value is used to decode the number of mV.
#define ANT_BSC_EVENT_TIME_COUNTS_PER_SEC 1024u |
Number of Bicycle Speed or Cadence event time counts per second.
According to the ANT BSC specification, the speed or cadence event time unit is 1/1024 of a second.
#define ANT_BSC_EVENT_TIME_MSEC | ( | EVENT_TIME | ) |
This macro should be used to get the milliseconds part of the BSC event time.
#define ANT_BSC_EVENT_TIME_PRECISION 1000u |
BSC event time display required precision.
This value is used to decode the number of milliseconds.
#define ANT_BSC_OPERATING_TIME_UNIT 2u |
Unit for BSC operating time.
According to the ANT BSC specification, the operating time unit is 2 seconds.