Hardware manual

48
5.3.10. PXMC_HH_BASIC.C
At begin of the description of this file, it should be clearly mentioned that this file has
couple of mistakes and probably it will not work properly. Moreover, because here are
calls to fields inside pxmc_state structure which don't exists, it seems that it should be
impossible to compile this file.
Name of pole
Short description
pxmc_hh_gi*
       
initialization.
pxmc_hh_gd10*

pxmc_hh_gd20*
A/a.
pxmc_get_hh_gi_4axis*
This function returns a pointer to the pxmc_hh_gi. This pointer
later can be used inside pxmc_state_t structure for
pxms_do_gen field.
* - function is not accessible from outside of the library.
The differences between pxmc_hh_gd10 and pxmc_hh_gd20 are mainly concerned with
changes in speed of the motor.
5.3.11. PXMC_INP_COMMON.H
This file implements two very important functions: pxmc_irc_16bit_update and
pxmc_irc_16bit_commindx.
Name of pole
Short description
pxmc_irc_16bit_update
This function updates PXMC fields: actual position and actual
speed, according to value read from 16bits IRC sensor. It
is/should be always called from function which pointer is stored
in pxms_do_inp.
pxmc_irc_16bit_commindx
This function is also called from function which pointer is stored
in pxms_do_inp, but only when the flag: PXMS_PTI_b is enabled.
We can say it is almost the heart of PXMS because it calculates
the new position of index in the phase table(s).
5.3.12. PXMC_INTERNAL.H
As we can see from the picture nr 5.3.1-2, it is one of the most important file in the whole
library. The importance of it is due to the fact, that it predefines several functions and
constants, later used by generators and/or by functions which operate on phase table(s).