nRF51 SDK: Interface

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Interface
ANT Stride and Distance Monitor (SDM) TX example

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

SDM TX module interface.

## Function Documentation

uint32_t sdm_tx_broadcast_data_set | ( | uint8_t | page_number,
|  | uint8_t * | p_message
| ) |  |

Set the broadcast data for next message.

Parameters

  [in] | page_number | The page number to prepare data for.
  [out] | p_message | The data buffer containing the next message.

Returns
  NRF_SUCCESS.
  SDM_ERROR_INVALID_PAGE_NUMBER.

uint32_t sdm_tx_init | ( | void |  | ) |

Initialize/Reset the SDM module.

Returns
  NRF_SUCCESS.

uint32_t sdm_tx_log | ( | uint8_t * | p_message | ) |

Log activity on UART, GPIO or None.

Parameters

  [in] | p_message | The content of the message we want to log.

Returns
  NRF_SUCCESS

uint32_t sdm_tx_next_page_num_get | ( | uint8_t * | p_next_page | ) |

Get next page number to broadcast.

Parameters

  [out] | p_next_page | A pointer to a variable holding the next page to be broadcast.

Returns
  NRF_SUCCESS.

uint32_t sdm_tx_sensor_data_update | ( | void |  | ) |

Update SDM data.

Returns
  NRF_SUCCESS.