Hardware manual

87
void aboutMenuFileClicked ()
Function called after Help->About menu click.
Private Member Functions
int initport (int fd)
Initializes given port.
int writeport (int fd, char *chars)
Write given string to a device.
int readport (int fd, char *result)
Read string from a device.
int getbaud (int fd)
Detects Baud Rate on an open device.
int allocateMemory ()
Allocates memory for phase tables.
int deallocateMemory ()
Frees memory.
int openDevice ()
Open given device.
int closeDevice ()
Close opened device.
int generatePhaseTables ()
Generates phase tables.
int detection (short pos_pha[], short *nr_of_pha, unsigned short hal_tab[])
Provides detection of hall sensors and index mark.
Private Attributes
int fd
Pointer to device for communication.
short phaseTableLen
The length of phase tables.