AN2841 Freescale Semiconductor / Motorola, AN2841 Datasheet - Page 17

no-image

AN2841

Manufacturer Part Number
AN2841
Description
Using the Hall Decoder (HD) eTPU Function
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
4.3.3
This function returns the motion system direction. This function has the following parameter:
The returned value can be one of:
4.3.4
This function returns the Revolution Counter value. This function has the following parameter:
The Revolution Counter value is returned as an int24_t.
4.3.5
This function returns the Revolution Period value. This function has the following parameter:
The Revolution Period value is returned as an int24_t.
4.3.6
This function returns the Sector Period value. This function has the following parameter:
The Sector Period value is returned as an int24_t.
Freescale Semiconductor
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
— ETPU_HD_DIRECTION_INC
— ETPU_HD_DIRECTION_DEC
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
channel (uint8_t) - This is the Phase A channel number. This parameter must be assigned the
same value as was assigned to the channel_phaseA parameter in the initialization routine. If there
are more HDs running simultaneously on the eTPU(s), the channel parameter distinguishes which
HD function is accessed.
uint8_t fs_etpu_hd_get_direction( uint8_t channel)
int24_t fs_etpu_hd_get_revolution_counter( uint8_t
channel)
int24_t fs_etpu_hd_get_revolution_period( uint8_t channel)
int24_t fs_etpu_hd_get_sector_period( uint8_t channel)
Using the Hall Decoder (HD) eTPU Function, Rev. 0
C Level API for Function
17

Related parts for AN2841