iLLD_TC27xD  1.0
Functions
Collaboration diagram for Functions:

Functions

IFX_EXTERN boolean IfxGpt12_IncrEnc_init (IfxGpt12_IncrEnc *driver, const IfxGpt12_IncrEnc_Config *config)
 Initialises the Incremental interface. More...
 
IFX_EXTERN void IfxGpt12_IncrEnc_initConfig (IfxGpt12_IncrEnc_Config *config, Ifx_GPT12 *gpt12)
 Initializes the configuration structure to default. More...
 

Detailed Description

Function Documentation

IFX_EXTERN boolean IfxGpt12_IncrEnc_init ( IfxGpt12_IncrEnc driver,
const IfxGpt12_IncrEnc_Config config 
)

Initialises the Incremental interface.

Parameters
driverincremental encoder interface Handle
configConfiguration structure for incremental encoder
Returns
TRUE on success else FALSE
// create module config
IfxGpt12_IncrEnc_initConfig(&gptConfig , &MODULE_GPT120);
// initialize module
//IfxGpt12_IncrEnc gpt12; // defined globally
IfxGpt12_IncrEnc_init(&gpt12, &gptConfig);

Definition at line 139 of file IfxGpt12_IncrEnc.c.

IFX_EXTERN void IfxGpt12_IncrEnc_initConfig ( IfxGpt12_IncrEnc_Config config,
Ifx_GPT12 *  gpt12 
)

Initializes the configuration structure to default.

Parameters
configConfiguration structure for incremental encoder
gpt12pointer to module base address
Returns
None

see IfxGpt12_IncrEnc_initModule

Definition at line 282 of file IfxGpt12_IncrEnc.c.