| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

Macros
SDK EVAL LSM6DS3_HAL Exported Functions
SDK EVAL BlueNRG1 » LSM6DS3 » SDK EVAL LSM6DS3_HAL

## Macros

#define | LSM6DS3_IO_Init() (IMU_6AXES_StatusTypeDef)SdkEvalSpiInit(LSM6DS3_SPI_FREQUENCY)
#define | LSM6DS3_IO_Write(pBuffer, DeviceAddr, RegisterAddr, NumByteToWrite) (IMU_6AXES_StatusTypeDef)SdkEvalSpiWrite(pBuffer, RegisterAddr, NumByteToWrite)
#define | LSM6DS3_IO_Read(pBuffer, DeviceAddr, RegisterAddr, NumByteToRead) (IMU_6AXES_StatusTypeDef)SdkEvalSpiRead(pBuffer, RegisterAddr, NumByteToRead)
#define | LSM6DS3_IO_ITConfig()

## Detailed Description

## Macro Definition Documentation

#define LSM6DS3_IO_Init | ( |  | void | ) | (IMU_6AXES_StatusTypeDef)SdkEvalSpiInit(LSM6DS3_SPI_FREQUENCY)

Definition at line 102 of file lsm6ds3_hal.h.

#define LSM6DS3_IO_ITConfig | ( |  | void | ) |

Value:
{SysCtrl_PeripheralClockCmd(CLOCK_PERIPH_GPIO, ENABLE); \
GPIO_Init(&(GPIO_InitType){LSM6DS3_IRQ_PIN, GPIO_Input, DISABLE, DISABLE}); \
NVIC_Init(&(NVIC_InitType){GPIO_IRQn, LOW_PRIORITY, ENABLE}); \
GPIO_EXTIConfig(&(GPIO_EXTIConfigType){LSM6DS3_IRQ_PIN, GPIO_IrqSense_Edge, IRQ_ON_FALLING_EDGE}); \
GPIO_ClearITPendingBit(LSM6DS3_IRQ_PIN); \
GPIO_EXTICmd(LSM6DS3_IRQ_PIN, ENABLE);}
LSM6DS3_IRQ_PIN
#define LSM6DS3_IRQ_PIN
Definition: lsm6ds3_hal.h:74
IRQ_ON_FALLING_EDGE
Definition: SDK_EVAL_Button.h:63

Definition at line 110 of file lsm6ds3_hal.h.

#define LSM6DS3_IO_Read | ( |  | pBuffer,
|  |  | DeviceAddr,
|  |  | RegisterAddr,
|  |  | NumByteToRead
| ) |  | (IMU_6AXES_StatusTypeDef)SdkEvalSpiRead(pBuffer, RegisterAddr, NumByteToRead)

Definition at line 104 of file lsm6ds3_hal.h.

#define LSM6DS3_IO_Write | ( |  | pBuffer,
|  |  | DeviceAddr,
|  |  | RegisterAddr,
|  |  | NumByteToWrite
| ) |  | (IMU_6AXES_StatusTypeDef)SdkEvalSpiWrite(pBuffer, RegisterAddr, NumByteToWrite)

Definition at line 103 of file lsm6ds3_hal.h.