nRF5 SDK v12.1.0
Functions
Direct Test Mode HW

Module contains hardware related function for testing RF/PHY using DTM commands. More...

Functions

bool dtm_hw_set_timer (NRF_TIMER_Type **mp_timer, IRQn_Type *m_timer_irq, uint32_t new_timer)
 Function for selecting a timer resource. This function may be called directly, or through dtm_cmd() specifying DTM_PKT_VENDORSPECIFIC as payload, SELECT_TIMER as length, and the timer as freq. More...
 
void dtm_turn_off_test (void)
 Function for turning off radio test. This function is platform depending. For now only nRF51 requieres this special function.
 
void dtm_constant_carrier (void)
 Function for setting constant carrier in radio settings. This function is used to handle vendor specific command testing continous carrier without a modulated signal.
 
uint32_t dtm_radio_validate (int32_t m_tx_power, uint8_t m_radio_mode)
 Function for validating tx power and radio move settings. More...
 

Detailed Description

Module contains hardware related function for testing RF/PHY using DTM commands.

Function Documentation

bool dtm_hw_set_timer ( NRF_TIMER_Type **  mp_timer,
IRQn_Type *  m_timer_irq,
uint32_t  new_timer 
)

Function for selecting a timer resource. This function may be called directly, or through dtm_cmd() specifying DTM_PKT_VENDORSPECIFIC as payload, SELECT_TIMER as length, and the timer as freq.

Parameters
[out]mp_timerPointer to timer instance used in dtm source file.
[out]m_timer_irqPointer to timer interrupt related to mp_timer.
[in]new_timerTimer id for the timer to use.
Return values
trueif the timer was successfully changed.
falseif the error occurs.
uint32_t dtm_radio_validate ( int32_t  m_tx_power,
uint8_t  m_radio_mode 
)

Function for validating tx power and radio move settings.

Parameters
[in]m_tx_powerTX power for transmission test.
[in]m_radio_modeRadio mode value.
Return values
DTM_SUCCESSif input parameters values are correct.
DTM_ERROR_ILLEGAL_CONFIGURATIONif input parameters values are not correct.

Documentation feedback | Developer Zone | Subscribe | Updated