Hardware manual

90
int Form1::writeport (int fd, char * chars) [private]
Write given string to a device.
Function writes a string to device pointed by fd descriptor.
Parameters:
fd descriptor of a device.
chars pointer to a char array with a string which should be sent to the device.
Returns:
0 if there were no errors.
int Form1::readport (int fd, char * result) [private]
Read string from a device.
Function reads from given device and stores readed string in a char array pointed by result pointer.
Parameters:
fd descriptor of a device.
result pointer to a char array where the readed string should be stored.
Returns:
0 if there were no errors.
int Form1::getbaud (int fd) [private]
Detects Baud Rate on an open device.
Function estimates the baud rate for a give device.
Parameters:
fd descriptor of a device.
Returns:
0 if there were no errors.
int Form1::allocateMemory () [private]
Allocates memory for phase tables.
Function allocates memory for phase tables. It takes the value from phaseTableLen field.
Returns:
0 if there were no errors.
int Form1::deallocateMemory () [private]
Frees memory.
Function frees memory allocated for phase tables.
Returns:
0 if there were no errors.