Merge pull request #11653 from aabadie/pr/pkg/semtech-loramac-cleanup-rx-getset
pkg/semtech-loramac: update rx parameters type
This commit is contained in:
commit
ce11ad52c5
@ -392,7 +392,7 @@ void _init_loramac(semtech_loramac_t *mac,
|
|||||||
semtech_loramac_set_tx_port(mac, LORAMAC_DEFAULT_TX_PORT);
|
semtech_loramac_set_tx_port(mac, LORAMAC_DEFAULT_TX_PORT);
|
||||||
semtech_loramac_set_tx_mode(mac, LORAMAC_DEFAULT_TX_MODE);
|
semtech_loramac_set_tx_mode(mac, LORAMAC_DEFAULT_TX_MODE);
|
||||||
semtech_loramac_set_system_max_rx_error(mac,
|
semtech_loramac_set_system_max_rx_error(mac,
|
||||||
LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR);
|
LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR);
|
||||||
semtech_loramac_set_min_rx_symbols(mac, LORAMAC_DEFAULT_MIN_RX_SYMBOLS);
|
semtech_loramac_set_min_rx_symbols(mac, LORAMAC_DEFAULT_MIN_RX_SYMBOLS);
|
||||||
#ifdef MODULE_PERIPH_EEPROM
|
#ifdef MODULE_PERIPH_EEPROM
|
||||||
_read_loramac_config(mac);
|
_read_loramac_config(mac);
|
||||||
|
|||||||
@ -290,7 +290,7 @@ uint8_t semtech_loramac_get_tx_mode(semtech_loramac_t *mac)
|
|||||||
return mac->cnf;
|
return mac->cnf;
|
||||||
}
|
}
|
||||||
|
|
||||||
void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error)
|
void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, uint32_t error)
|
||||||
{
|
{
|
||||||
MibRequestConfirm_t mibReq;
|
MibRequestConfirm_t mibReq;
|
||||||
mutex_lock(&mac->lock);
|
mutex_lock(&mac->lock);
|
||||||
@ -300,7 +300,7 @@ void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error)
|
|||||||
mutex_unlock(&mac->lock);
|
mutex_unlock(&mac->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, int min_rx)
|
void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, uint8_t min_rx)
|
||||||
{
|
{
|
||||||
MibRequestConfirm_t mibReq;
|
MibRequestConfirm_t mibReq;
|
||||||
mutex_lock(&mac->lock);
|
mutex_lock(&mac->lock);
|
||||||
|
|||||||
@ -429,7 +429,7 @@ void semtech_loramac_set_tx_port(semtech_loramac_t *mac, uint8_t port);
|
|||||||
* @param[in] mac Pointer to the mac
|
* @param[in] mac Pointer to the mac
|
||||||
* @param[in] error The maximum rx timing error
|
* @param[in] error The maximum rx timing error
|
||||||
*/
|
*/
|
||||||
void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error);
|
void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, uint32_t error);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the minimum required number of symbols to detect a frame
|
* @brief Sets the minimum required number of symbols to detect a frame
|
||||||
@ -437,7 +437,7 @@ void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error);
|
|||||||
* @param[in] mac Pointer to the mac
|
* @param[in] mac Pointer to the mac
|
||||||
* @param[in] min_rx The minimum rx symbols
|
* @param[in] min_rx The minimum rx symbols
|
||||||
*/
|
*/
|
||||||
void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, int min_rx);
|
void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, uint8_t min_rx);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the TX application port
|
* @brief Gets the TX application port
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user