Code |
Version |
serialfc-windows |
2.0.0 |
serialfc-linux |
2.0.0 |
cserialfc |
1.0.0 |
Card Family |
Supported |
FSCC (16C950) |
Yes |
Async-335 (17D15X) |
Yes |
Async-PCIe (17V35X) |
Yes |
Card Family |
Range |
FSCC (16C950) |
4 - 16 |
Async-335 (17D15X) |
8, 16 |
Async-PCIe (17V35X) |
4, 8, 16 |
int serialfc_get_sample_rate(serialfc_handle h, unsigned *rate)
Parameter |
Type |
Description |
h |
serialfc_handle |
The handle to your port |
status |
unsigned int * |
The current sample rate value |
Return Code |
Value |
Cause |
|
0 |
Success |
#include <serialfc.h>
...
unsigned rate;
serialfc_get_sample_rate(h, &rate);
int serialfc_set_sample_rate(serialfc_handle h, unsigned rate)
Parameter |
Type |
Description |
h |
serialfc_handle |
The handle to your port |
status |
unsigned int |
What sample rate you would like set |
Return Code |
Value |
Cause |
|
0 |
Success |
SERIALFC_INVALID_PARAMETER |
17001 |
Invalid parameter |
#include <serialfc.h>
...
serialfc_set_sample_rate(h, 16);