I have an N5150 SOC running my application and want ANT-FS running only at selected times. Starting up is easy but I don't see any examples of closing/stopping ANT-FS. Obviously it will 'stop' if I close the channel, but it seems I'd be leaving a bunch of 'residue' in the antfs functions.
Another thought was calling state_machine_reset(), but this is a local function only so that doesn't seem to be an intentional interface.
One additional piece of information, I had to add a function to antfs.c:
void antfs_stop(void) // TWS, added to provide clean up on stop { state_machine_reset(); }
because the timer used by antfs was still running if I called antfs soon after shutting it down and antfs would fail in antfs_init() on the app_timer_create() call.