Added TX power table sizes for RF-prop settings

This commit is contained in:
Edvard Pettersen 2018-02-15 12:51:15 +01:00
parent 5c058b9c52
commit 723e59264c
2 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,7 @@ RF_TxPower RF_propTxPower779_930[] = {
{ -10, 0x08c0 }, { -10, 0x08c0 },
{-128, 0xFFFF }, {-128, 0xFFFF },
}; };
const size_t RF_propTxPower779_930Size = sizeof(RF_propTxPower779_930) / sizeof(RF_propTxPower779_930[0]);
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* Default TX power settings for the 431-527MHz band */ /* Default TX power settings for the 431-527MHz band */
RF_TxPower RF_propTxPower431_527[] = { RF_TxPower RF_propTxPower431_527[] = {
@ -78,6 +79,7 @@ RF_TxPower RF_propTxPower431_527[] = {
{ 6, 0x22c4 }, { 6, 0x22c4 },
{-128, 0xFFFF }, {-128, 0xFFFF },
}; };
const size_t RF_propTxPower431_527Size = sizeof(RF_propTxPower431_527) / sizeof(RF_propTxPower431_527[0]);
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/** /**
* @} * @}

View File

@ -17,7 +17,10 @@
// RF TX power table // RF TX power table
extern RF_TxPower RF_propTxPower779_930[]; extern RF_TxPower RF_propTxPower779_930[];
extern const size_t RF_propTxPower779_930Size;
extern RF_TxPower RF_propTxPower431_527[]; extern RF_TxPower RF_propTxPower431_527[];
extern const size_t RF_propTxPower431_527Size;
// TI-RTOS RF Mode Object // TI-RTOS RF Mode Object
extern RF_Mode RF_propMode; extern RF_Mode RF_propMode;