AN2841 Freescale Semiconductor / Motorola, AN2841 Datasheet - Page 16

no-image

AN2841

Manufacturer Part Number
AN2841
Description
Using the Hall Decoder (HD) eTPU Function
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
C Level API for Function
4.2.5
This function changes the Revolution Counter value. This function has the following parameters:
4.2.6
This function disables one HD channel. This function has the following parameter:
4.3
4.3.1
This function returns the pointer to the state structure. This function has the following parameter:
4.3.2
This function returns the current Sector Value. This function has the following parameter:
The Sector value is returned as an uint8_t.
16
direction (uint8_t) - This parameter should be assigned a value of:
— 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.
value (int24_t) - This is the Revolution Counter value to be set.
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.
Value Return Function
int32_t fs_etpu_hd_reset_revolution_counter( uint8_t
channel, int24_t value)
int32_t fs_etpu_hd_disable( uint8_t channel)
etpu_hd_state_t* fs_etpu_hd_state_struct( uint8_t channel)
uint8_t fs_etpu_hd_get_sector( uint8_t channel)
Using the Hall Decoder (HD) eTPU Function, Rev. 0
Freescale Semiconductor

Related parts for AN2841