This fork is necessary for the Starship code.

Fork of BSP_DISCO_F429ZI by ST

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 142 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 264 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 234 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 315 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 291 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 335 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 119 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 203 of file l3gd20.c.

void L3GD20_LowPower ( uint16_t  InitStruct )

Set L3GD20 in low-power mode.

Parameters:
@retvalNone

Definition at line 189 of file l3gd20.c.

uint8_t L3GD20_ReadID ( void   )

Read ID address of L3GD20.

Parameters:
None
Return values:
IDname

Definition at line 151 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 350 of file l3gd20.c.

void L3GD20_RebootCmd ( void   )

Reboot memory content of L3GD20.

Parameters:
None
Return values:
None

Definition at line 170 of file l3gd20.c.