Hardware manual

73
Function
unsigned char hal_read (struct pxmc_state * mcs)
Arguments
mcs
Motion controller state information
Description
This function reads and returns hall sensor value.
A.2 The documentation for bldctest.c:
Function
int pxmc_initialize ( void)
Arguments
void
no arguments
Description
This function initializes all subsystems necessary for proper work of pxmc. There are switched
on: pwm, hall sensors read, irc updates, sampling period is set up and the irq for index mark
detection.
Function
bool pxmc_set_default_functions_for_all_motors (pxmc_motor_kind_e motor)
Arguments
motor
Kind of motor which we are going to use -> see header for full list of supported motors
Description
This function sets up defaults pointers to control functions for all motors which are presented in
the system. The default configuration depends on the motor kind.