-21-
FES101E6
User Manual
FR2ur2_comport.c
FR2ur2_comport.h
// To get value of PINs DI-0, DI-1, DI-2
int get_FR_u2r2_gpio_in0 (); // read DI-0
int get_FR_u2r2_gpio_in1 (); // read DI-1
int get_FR_u2r2_gpio_in2 (); // read DI-2
3-2-3.
To control Comport Mode:
FR_u2r2 generate two devices node, the path are “/dev/ttyUSB0” and “/dev/ttyUSB1”
.
Refer to the API files.
// To set ttyUSB0 comport mode
Int set_FR2ur2_ttyUSB0_mode(comport_mode);
// To set ttyUSB1 comport mode
Int set_FR2ur2_ttyUSB1_mode(comport_mode);
** comport_mode setting, refer to Table 1 of section 3-1-5
Summary of Contents for FES101E6
Page 4: ...4 FES101E6 User Manual 3 2 2 To control DIO Ports 20 3 2 3 To control Comport Mode 21...
Page 9: ...9 FES101E6 User Manual 1 3 2 Panel Mounting Illustration 1 3 3 Clips Mounting Illustration...
Page 10: ...10 FES101E6 User Manual 2 Peripherals Port Description 2 1 External IO port placement...