mems.c File Reference

Mems Initialization and management. More...


Functions

void MEMS_GetPosition (s16 *pX, s16 *pY)
void MEMS_GetRotation (Rotate_H12_V_Match_TypeDef *pH12)
void MEMS_SetNeutral (void)
tMEMS_InfoMEMS_GetInfo (void)


Detailed Description

Author:
FL
Date:
07/2007
Version:
1.1
Date:
10/2007
Version:
1.5 various corrections reported by Ron Miller

Function Documentation

tMEMS_Info* MEMS_GetInfo ( void   ) 

Return the current MEMS information (state, absolute position...).

Returns:
a pointer to tMEMS_Info

void MEMS_GetPosition ( s16 *  pX,
s16 *  pY 
)

Returns the current (relative) position of the Primer. Only X-Y axis are considered here.

Parameters:
[out] pX Current horizontal coordinate.
[out] pY Current vertical coordinate.
Warning:
The (0x0) point in on the low left corner.
Note:
For absolute position information use MEMS_GetInfo()

void MEMS_GetRotation ( Rotate_H12_V_Match_TypeDef pH12  ) 

Returns current screen orientation.

Parameters:
[out] pH12 Current screen orientation.

void MEMS_SetNeutral ( void   ) 

Set current position as "neutral position".