Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 755 Bytes

sample-rate.md

File metadata and controls

52 lines (37 loc) · 755 Bytes

Sample Rate

Code Support
Code Version
asynccom-linux 1.0.0
Operating Range
Card Family Range
Async Com (16C950) 4 - 16

Get

IOCTL

IOCTL_ASYNCCOM_GET_SAMPLE_RATE
Examples
#include <asynccom.h>
...

unsigned rate;

ioctl(fd, IOCTL_ASYNCCOM_GET_SAMPLE_RATE, &rate);

Set

IOCTL

IOCTL_ASYNCCOM_SET_SAMPLE_RATE
System Error Value Cause
EINVAL 22 (0x16) Invalid parameter
Examples
#include <asynccom.h>
...

ioctl(fd, IOCTL_ASYNCCOM_SET_SAMPLE_RATE, 32);

Additional Resources