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 );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) 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.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |