STM32L476G-Discovery board drivers V1.0.0

Dependents:   DiscoLogger DISCO_L476VG_GlassLCD DISCO_L476VG_MicrophoneRecorder DISCO_L476VG_UART ... more

Embed: (wiki syntax)

« Back to documentation index

L3GD20_Private_Functions

L3GD20_Private_Functions
[L3GD20]

Functions

void L3GD20_Init (uint16_t InitStruct)
 Set L3GD20 Initialization.
void L3GD20_DeInit (void)
 L3GD20 De-initialization.
uint8_t L3GD20_ReadID (void)
 Read ID address of L3GD20.
void L3GD20_RebootCmd (void)
 Reboot memory content of L3GD20.
void L3GD20_LowPower (uint16_t InitStruct)
 Set L3GD20 in low-power mode.
void L3GD20_INT1InterruptConfig (uint16_t Int1Config)
 Set L3GD20 Interrupt INT1 configuration.
void L3GD20_EnableIT (uint8_t IntSel)
 Enable INT1 or INT2 interrupt.
void L3GD20_DisableIT (uint8_t IntSel)
 Disable INT1 or INT2 interrupt.
void L3GD20_FilterConfig (uint8_t FilterStruct)
 Set High Pass Filter Modality.
void L3GD20_FilterCmd (uint8_t HighPassFilterState)
 Enable or Disable High Pass Filter.
uint8_t L3GD20_GetDataStatus (void)
 Get status for L3GD20 data.
void L3GD20_ReadXYZAngRate (float *pfData)
 Calculate the L3GD20 angular data.

Function Documentation

void L3GD20_DeInit ( void   )

L3GD20 De-initialization.

Parameters:
None
Return values:
None

Definition at line 124 of file l3gd20.c.

void L3GD20_DisableIT ( uint8_t  IntSel )

Disable INT1 or INT2 interrupt.

Parameters:
IntSel,:choice of INT1 or INT2 This parameter can be:

  • L3GD20_INT1
  • L3GD20_INT2
Return values:
None

Definition at line 246 of file l3gd20.c.

void L3GD20_EnableIT ( uint8_t  IntSel )

Enable INT1 or INT2 interrupt.

Parameters:
IntSel,:choice of INT1 or INT2 This parameter can be:

  • L3GD20_INT1
  • L3GD20_INT2
Return values:
None

Definition at line 216 of file l3gd20.c.

void L3GD20_FilterCmd ( uint8_t  HighPassFilterState )

Enable or Disable High Pass Filter.

Parameters:
HighPassFilterState,:new state of the High Pass Filter feature. This parameter can be:

  • : L3GD20_HIGHPASSFILTER_DISABLE
  • : L3GD20_HIGHPASSFILTER_ENABLE
Return values:
None

Definition at line 297 of file l3gd20.c.

void L3GD20_FilterConfig ( uint8_t  FilterStruct )

Set High Pass Filter Modality.

Parameters:
FilterStruct,:contains the configuration setting for the L3GD20.
Return values:
None

Definition at line 273 of file l3gd20.c.

uint8_t L3GD20_GetDataStatus ( void   )

Get status for L3GD20 data.

Parameters:
None
Return values:
Datastatus in a L3GD20 Data

Definition at line 317 of file l3gd20.c.

void L3GD20_Init ( uint16_t  InitStruct )

Set L3GD20 Initialization.

Parameters:
L3GD20_InitStruct,:pointer to a L3GD20_InitTypeDef structure that contains the configuration setting for the L3GD20.
Return values:
None

Definition at line 101 of file l3gd20.c.

void L3GD20_INT1InterruptConfig ( uint16_t  Int1Config )

Set L3GD20 Interrupt INT1 configuration.

Parameters:
Int1Config,:the configuration setting for the L3GD20 Interrupt.
Return values:
None

Definition at line 185 of file l3gd20.c.

void L3GD20_LowPower ( uint16_t  InitStruct )

Set L3GD20 in low-power mode.

Parameters:
@retvalNone

Definition at line 171 of file l3gd20.c.

uint8_t L3GD20_ReadID ( void   )

Read ID address of L3GD20.

Parameters:
None
Return values:
IDname

Definition at line 133 of file l3gd20.c.

void L3GD20_ReadXYZAngRate ( float *  pfData )

Calculate the L3GD20 angular data.

Parameters:
pfData,:Data out pointer
Return values:
None

Definition at line 332 of file l3gd20.c.

void L3GD20_RebootCmd ( void   )

Reboot memory content of L3GD20.

Parameters:
None
Return values:
None

Definition at line 152 of file l3gd20.c.