-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge v1.1.0
- Loading branch information
Showing
56 changed files
with
460 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "3.6" | ||
|
||
sudo: false | ||
cache: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseBatteryStatus.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseBatteryStatus.h> | ||
#include <Profiles/BicycleSpeed/ANTPLUS_BicycleSpeedPrivateDefines.h> | ||
|
||
template<class T> | ||
BicycleSpeedBaseBatteryStatus<T>::BicycleSpeedBaseBatteryStatus() : CoreDataPage<T>() { | ||
} | ||
|
||
template<class T> | ||
uint8_t BicycleSpeedBaseBatteryStatus<T>::getFractionalBatteryVoltage() { | ||
return this->get8BitValue( | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_FRACTIONALBATTERYVOLTAGE_BYTE); | ||
} | ||
|
||
template<class T> | ||
uint8_t BicycleSpeedBaseBatteryStatus<T>::getCoarseBatteryVoltage() { | ||
return this->get8BitValue( | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_COARSEBATTERYVOLTAGE_BYTE, | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_COARSEBATTERYVOLTAGE_MASK); | ||
} | ||
|
||
template<class T> | ||
uint8_t BicycleSpeedBaseBatteryStatus<T>::getBatteryStatus() { | ||
return this->get8BitValue( | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_BATTERYSTATUS_BYTE, | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_BATTERYSTATUS_MASK, | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_BATTERYSTATUS_BATTERYSTATUS_SHIFT); | ||
} | ||
|
||
template class BicycleSpeedBaseBatteryStatus<BroadcastData>; | ||
template class BicycleSpeedBaseBatteryStatus<BroadcastDataMsg>; |
17 changes: 17 additions & 0 deletions
17
src/Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseBatteryStatus.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef ANTPLUS_BICYCLESPEEDBASEBATTERYSTATUS_h | ||
#define ANTPLUS_BICYCLESPEEDBASEBATTERYSTATUS_h | ||
|
||
#include <BaseClasses/ANTPLUS_CoreDataPage.h> | ||
|
||
#include "ANT.h" | ||
|
||
template<class T> | ||
class BicycleSpeedBaseBatteryStatus : virtual public CoreDataPage<T> { | ||
public: | ||
BicycleSpeedBaseBatteryStatus(); | ||
uint8_t getFractionalBatteryVoltage(); | ||
uint8_t getCoarseBatteryVoltage(); | ||
uint8_t getBatteryStatus(); | ||
}; | ||
|
||
#endif // ANTPLUS_BICYCLESPEEDBASEBATTERYSTATUS_h |
16 changes: 16 additions & 0 deletions
16
src/Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseCumulativeOperatingTime.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseCumulativeOperatingTime.h> | ||
#include <Profiles/BicycleSpeed/ANTPLUS_BicycleSpeedPrivateDefines.h> | ||
|
||
template<class T> | ||
BicycleSpeedBaseCumulativeOperatingTime<T>::BicycleSpeedBaseCumulativeOperatingTime() : CoreDataPage<T>() { | ||
} | ||
|
||
template<class T> | ||
uint32_t BicycleSpeedBaseCumulativeOperatingTime<T>::getCumulativeOperatingTime() { | ||
return this->get24BitValue( | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_CUMULATIVEOPERATINGTIME_TIME_LSB_BYTE, | ||
ANTPLUS_BICYCLESPEED_DATAPAGE_CUMULATIVEOPERATINGTIME_TIME_MSB_BYTE); | ||
} | ||
|
||
template class BicycleSpeedBaseCumulativeOperatingTime<BroadcastData>; | ||
template class BicycleSpeedBaseCumulativeOperatingTime<BroadcastDataMsg>; |
15 changes: 15 additions & 0 deletions
15
src/Profiles/BicycleSpeed/DataPages/Base/ANTPLUS_BicycleSpeedBaseCumulativeOperatingTime.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef ANTPLUS_BICYCLESPEEDBASECUMULITIVEOPERATINGTIME_h | ||
#define ANTPLUS_BICYCLESPEEDBASECUMULITIVEOPERATINGTIME_h | ||
|
||
#include <BaseClasses/ANTPLUS_CoreDataPage.h> | ||
|
||
#include "ANT.h" | ||
|
||
template<class T> | ||
class BicycleSpeedBaseCumulativeOperatingTime : virtual public CoreDataPage<T> { | ||
public: | ||
BicycleSpeedBaseCumulativeOperatingTime(); | ||
uint32_t getCumulativeOperatingTime(); // only 24 bits | ||
}; | ||
|
||
#endif // ANTPLUS_BICYCLESPEEDBASECUMULITIVEOPERATINGTIME_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.