Updated: October 28, 2024 |
Get the current Vehicle Input (VIN) list from an AFM
#include <sys/asoundlib.h> int snd_afm_get_vin_list( snd_afm_t *handle, snd_afm_vin_list_item_t *list, int num );
The snd_afm_get_vin_list_count() function gets the list of vehicle inputs that you should retrieve data for from the CAN bus or other vehicle interface and inputs it to the AFM using afm_set_win_stream(). The number and type of vehicle inputs depends on the AFM's current configuration and can only be retrieved after the AFM is running.
The afm_vin_list_item structure is defined as follows:
typedef struct snd_afm_vin_list_item { int16_t key; int16_t min; int16_t max; int16_t is_rpm; } snd_afm_vin_list_item_t;
The members include:
EOK on success, or a negative errno value upon failure.
This function can also return the return values of devctl() (see devctl() in the QNX Neutrino C Library Reference).
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
This function is not thread safe if the handle (snd_afm_t) is used across multiple threads.