Tscope5
|
Definitions of cedrusbox functions. More...
Go to the source code of this file.
Functions | |
Response registration | |
Cedrusboxes can be used as response devices. See timer.c for more information about response registration. | |
int | ts5_define_cedrusbox_button (int device, int button) |
Define a cedrusbox button as a response button. More... | |
int | ts5_get_num_cedrusboxes () |
Get the number of cedrusboxes that are connected to the system. More... | |
int | ts5_get_num_cedrusbox_buttons (int device) |
Get the number of buttons available on a cedrusbox. More... | |
Trigger input | |
Cedrusboxes can be used as trigger input devices. See timer.c for more information about trigger input. | |
void | ts5_define_cedrusbox_trigger_input (int device) |
Define a cedrusbox as a trigger input device. More... | |
void | ts5_simulate_cedrusbox_trigger_input (int device, double interval) |
Turn on cedrusbox trigger input simulation. More... | |
Definitions of cedrusbox functions.
Definition in file cedrusbox.c.
int ts5_define_cedrusbox_button | ( | int | device, |
int | button | ||
) |
Define a cedrusbox button as a response button.
device | Number of the cedrusbox (devices are numbered from 1). |
button | Number of the button (buttons are counted from 1). |
Give a positive number if you want to monitor button press events, a negative number if you want to monitor button release events.
Definition at line 42 of file cedrusbox.c.
int ts5_get_num_cedrusboxes | ( | ) |
Get the number of cedrusboxes that are connected to the system.
Definition at line 112 of file cedrusbox.c.
int ts5_get_num_cedrusbox_buttons | ( | int | device | ) |
Get the number of buttons available on a cedrusbox.
device | Number of the cedrusbox (devices are numbered from 1). |
Definition at line 128 of file cedrusbox.c.
void ts5_define_cedrusbox_trigger_input | ( | int | device | ) |
Define a cedrusbox as a trigger input device.
device | Number of the cedrusbox (devices are numbered from 1). |
Definition at line 161 of file cedrusbox.c.
void ts5_simulate_cedrusbox_trigger_input | ( | int | device, |
double | interval | ||
) |
Turn on cedrusbox trigger input simulation.
device | Number of the cedrusbox (devices are numbered from 1). |
interval | Interval in seconds between two triggers. |
Definition at line 183 of file cedrusbox.c.