-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f221dd
commit d78a0c1
Showing
3 changed files
with
127 additions
and
48 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
Module: Catena_TxBuffer.cpp | ||
Function: | ||
class McciCatena::TxBuffer_t | ||
Copyright notice: | ||
See accompanying LICENSE file. | ||
Author: | ||
Terry Moore, MCCI Corporation April 2019 | ||
Notes: | ||
This module exists primarily to provide linkage of the static | ||
methods to the LMIC implementations. | ||
*/ | ||
|
||
#include <Catena_TxBuffer.h> | ||
#include <arduino_lmic.h> | ||
|
||
namespace McciCatena { | ||
|
||
template<> | ||
uint16_t AbstractTxBuffer_t<>::f2sflt12(float f) | ||
{ | ||
return LMIC_f2sflt12(f); | ||
} | ||
template<> | ||
uint16_t AbstractTxBuffer_t<>::f2sflt16(float f) | ||
{ | ||
return LMIC_f2sflt16(f); | ||
} | ||
template<> | ||
uint16_t AbstractTxBuffer_t<>::f2uflt12(float f) | ||
{ | ||
return LMIC_f2uflt12(f); | ||
} | ||
template<> | ||
uint16_t AbstractTxBuffer_t<>::f2uflt16(float f) | ||
{ | ||
return LMIC_f2uflt16(f); | ||
} | ||
|
||
} // namespace McciCatena |