You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
sd_ant_broadcast_message_tx(...)
sd_ant_channel_assign(0, CHANNEL_TYPE_MASTER, 0, 0)
sd_ant_channel_radio_freq_set(0, 66)
sd_ant_channel_period_set(0, 3276)
sd_ant_channel_id_set(0, <device_number>, <device_type>, 0x01)
sd_ant_broadcast_message_tx(<some data>)
sd_ant_channel_open(0)
sd_ant_channel_assign(0, CHANNEL_TYPE_SLAVE, 0, 0)
sd_ant_channel_id_set(0, 0x00, 0x00, 0x01)
sd_ant_channel_radio_freq_set(0, 66)
sd_ant_rx_scan_mode_start(0x01)
Thomas Schulze
Die Entwicklerschmiede
Innovative Lösungen für Ihre Leistungselektronik
#define ANT_SCAN_CHANNEL_NUMBER ((uint8_t) 0) /**< Scanning channel number. */
#define ANT_RESPONSE_CHANNEL_NUMBER_1 ((uint8_t) 1) /**< Response channel number 1 */
#define ANT_RESPONSE_CHANNEL_NUMBER_2 ((uint8_t) 2) /**< Response channel number 2 */
#define ANT_RESPONSE_CHANNEL_NUMBER_3 ((uint8_t) 3) /**< Response channel number 3 */
...
err_code = sd_ant_channel_id_set(ANT_RESPONSE_CHANNEL_NUMBER_1, device_number_to_respond_to, device_type_to_respond_to, transmission_type_to_respond_to);
...
err_code = sd_ant_acknowledge_message_tx(ANT_RESPONSE_CHANNEL_NUMBER_1, ANT_STANDARD_DATA_PAYLOAD_SIZE, m_tx_buffer);
Thomas Schulze
Die Entwicklerschmiede
Innovative Lösungen für Ihre Leistungselektronik
Thomas Schulze
Die Entwicklerschmiede
Innovative Lösungen für Ihre Leistungselektronik