nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

SDM TX module interface. More...

Functions

uint32_t sdm_tx_init (void)
 Initialize/Reset the SDM module. More...
 
uint32_t sdm_tx_next_page_num_get (uint8_t *p_next_page)
 Get next page number to broadcast. More...
 
uint32_t sdm_tx_broadcast_data_set (uint8_t page_number, uint8_t *p_message)
 Set the broadcast data for next message. More...
 
uint32_t sdm_tx_sensor_data_update (void)
 Update SDM data. More...
 
uint32_t sdm_tx_log (uint8_t *p_message)
 Log activity on UART, GPIO or None. More...
 

Detailed Description

Function Documentation

uint32_t sdm_tx_init ( void  )
Returns
NRF_SUCCESS.
uint32_t sdm_tx_next_page_num_get ( uint8_t *  p_next_page)
Parameters
[out]p_next_pageA pointer to a variable holding the next page to be broadcast.
Returns
NRF_SUCCESS.
uint32_t sdm_tx_broadcast_data_set ( uint8_t  page_number,
uint8_t *  p_message 
)
Parameters
[in]page_numberThe page number to prepare data for.
[out]p_messageThe data buffer containing the next message.
Returns
NRF_SUCCESS.
SDM_ERROR_INVALID_PAGE_NUMBER.
uint32_t sdm_tx_sensor_data_update ( void  )
Returns
NRF_SUCCESS.
uint32_t sdm_tx_log ( uint8_t *  p_message)
Parameters
[in]p_messageThe content of the message we want to log.
Returns
NRF_SUCCESS