CircleOS  1
Functions
mems.c File Reference

Common Mems 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
Version
4.4 Folder reorganization
Date
06/2013

Definition in file mems.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 239 of file mems.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]pXCurrent horizontal coordinate.
[out]pYCurrent vertical coordinate.
Warning
The (0x0) point in on the low left corner.
Note
For absolute position information use MEMS_GetInfo()

Definition at line 159 of file mems.c.

void MEMS_GetRotation ( Rotate_H12_V_Match_TypeDef pH12)

Returns current screen orientation.

Parameters
[out]pH12Current screen orientation.

Definition at line 178 of file mems.c.

void MEMS_SetNeutral ( void  )

Set current position as "neutral position".

Definition at line 220 of file mems.c.