mems_spe.c File Reference

Mems Initialization and management. More...

Go to the source code of this file.

Functions

void MEMS_GetPosition (coord_t *pX, coord_t *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
4.0 Folder reorganization
Date:
05/2010
Note:
Platform = STM32

Definition in file mems_spe.c.


Function Documentation

tMEMS_Info* MEMS_GetInfo ( void   ) 

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

Returns:
a pointer to tMEMS_Info

Definition at line 588 of file mems_spe.c.

void MEMS_GetPosition ( coord_t *  pX,
coord_t *  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()

Definition at line 508 of file mems_spe.c.

void MEMS_GetRotation ( Rotate_H12_V_Match_TypeDef pH12  ) 

Returns current screen orientation.

Parameters:
[out] pH12 Current screen orientation.

Definition at line 527 of file mems_spe.c.

void MEMS_SetNeutral ( void   ) 

Set current position as "neutral position".

Definition at line 569 of file mems_spe.c.