You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
err_code = sd_ant_channel_assign(p_config->channel_number,
p_config->channel_type,
p_config->network_number,
p_config->ext_assign);
Hi Tom,
You should be able to assign whichever channel you want in whichever order you want. In the demo, have you increased the number of channels which are allocated at SoftDevice initialization? If I recall correctly, the demo only starts with 2 channels allocated.
Are you using uVision 5? If you are, in the "arm5\RTE\nRF_ANT\nRF51422_xxAA" (or nRF51422_xxAC) folder there should be a file called "ant_stack_config_defs.h". In it it contains the "ANT_CONFIG_TOTAL_CHANNELS_ALLOCATED" definition. Here you should set how many ANT channels you will need for your application (at least 3 it sounds like).
Cheers