1.2.15.12 1.3.17.12 1.5.16.12 1.32.18.12 PDECx_HALLPatternGet Function
C
uint8_t PDECx_HALLPatternGet ( void ) // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
Summary
Reads the hall pattern.
Description
This function reads the hall pattern tracked by the channel counter COUNT LSB.
Precondition
PDECx_HALLInitialize function must have been called first for the given channel.
Parameters
None.
Returns
Returns the hall pattern.
Example
uint8_t position; PDEC_HALLInitialize(); PDEC_HALLStart(); position = PDEC_HALLPositionGet();
Remarks
None