TsctlAIOPeriodRangeListDesc

From embeddedTS Manuals

This function returns an Array of allowed sampling periods for each channel. The returned Array is dynamically allocated by the function but the caller is responsible for freeing it. The length of the Array is equal to the number of period ranges supported.

The period is always expressed in nano-seconds. A period of 0 indicates that the channel can be disabled.

The AIO_HZ() macro can be used to convert back and forth between Hz and nanoseconds.

struct PeriodRange {
  unsigned start, step, count;
};