c6dofimu12 2.0.0.0

Functions

void c6dofimu12_cfg_setup (c6dofimu12_cfg_t *cfg)
 Config Object Initialization function.
 
C6DOFIMU12_RETVAL c6dofimu12_init (c6dofimu12_t *ctx, c6dofimu12_cfg_t *cfg)
 Initialization function.
 
void c6dofimu12_default_cfg (c6dofimu12_t *ctx)
 Click Default Configuration function.
 
void c6dofimu12_generic_write (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len)
 Generic write function.
 
void c6dofimu12_generic_read (c6dofimu12_t *ctx, uint8_t reg, uint8_t *data_buf, uint16_t len)
 Generic read function.
 
C6DOFIMU12_RETVAL c6dofimu12_check_id (c6dofimu12_t *ctx)
 Check ID function.
 
C6DOFIMU12_RETVAL c6dofimu12_check_init_status (c6dofimu12_t *ctx)
 Check ID function.
 
void c6dofimu12_get_data (c6dofimu12_t *ctx, c6dofimu12_accel_t *accel_data, c6dofimu12_gyro_t *gyro_data)
 Read Accel and Gyro data function.
 
C6DOFIMU12_RETVAL c6dofimu12_check_int1 (c6dofimu12_t *ctx)
 Get interrupt 1 status function.
 
C6DOFIMU12_RETVAL c6dofimu12_check_int2 (c6dofimu12_t *ctx)
 Get interrupt 2 status function.
 

Detailed Description

Function Documentation

◆ c6dofimu12_cfg_setup()

void c6dofimu12_cfg_setup ( c6dofimu12_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ c6dofimu12_check_id()

C6DOFIMU12_RETVAL c6dofimu12_check_id ( c6dofimu12_t * ctx)

Check ID function.

Parameters
ctxClick object.
Returns
ID status:
  • 0 ( C6DOFIMU12_ERROR ) : Check ID Error;
  • 1 ( C6DOFIMU12_SUCCESS ) : Check ID Success;

@description Function check status initialization of the device of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.

◆ c6dofimu12_check_init_status()

C6DOFIMU12_RETVAL c6dofimu12_check_init_status ( c6dofimu12_t * ctx)

Check ID function.

Parameters
ctxClick object.
Returns
ID status:
  • 0 ( C6DOFIMU12_ERROR ) : Check init Error;
  • 1 ( C6DOFIMU12_SUCCESS ) : Check init Success;

@description Function check status initialization of the device of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.

◆ c6dofimu12_check_int1()

C6DOFIMU12_RETVAL c6dofimu12_check_int1 ( c6dofimu12_t * ctx)

Get interrupt 1 status function.

Parameters
ctxClick object.
Returns
Interrupt 1 state: 0 - Not active | 1 - Active

@description Function check interrupt 1 state by return state of the INT pin of 6DOF IMU 12 Click board.

◆ c6dofimu12_check_int2()

C6DOFIMU12_RETVAL c6dofimu12_check_int2 ( c6dofimu12_t * ctx)

Get interrupt 2 status function.

Parameters
ctxClick object.
Returns
Interrupt 2 state: 0 - Not active | 1 - Active

@description Function check interrupt 2 state by return state of the INT pin of 6DOF IMU 12 Click board.

◆ c6dofimu12_default_cfg()

void c6dofimu12_default_cfg ( c6dofimu12_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for 6DOF IMU 12 click.

◆ c6dofimu12_generic_read()

void c6dofimu12_generic_read ( c6dofimu12_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint16_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function reads data from the desired register.

◆ c6dofimu12_generic_write()

void c6dofimu12_generic_write ( c6dofimu12_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint16_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufOutput data buf
lenNumber of the bytes to be read

@description This function writes data to the desired register.

◆ c6dofimu12_get_data()

void c6dofimu12_get_data ( c6dofimu12_t * ctx,
c6dofimu12_accel_t * accel_data,
c6dofimu12_gyro_t * gyro_data )

Read Accel and Gyro data function.

Parameters
ctxClick object.
accel_dataPointer to memory location where Accel data be stored
gyro_dataPointer to memory location where Gyro data be stored

@description Function reads Accel and Gyro 16-bit ( signed ) X-axis, Y-axis data and Z-axis data from the 12 targeted starts from C6DOFIMU12_REG_ACC_X_LSB_ADDR register address of BMI270 6-axis, smart, low-power Inertial Measurement on 6DOF IMU 12 Click board.

◆ c6dofimu12_init()

C6DOFIMU12_RETVAL c6dofimu12_init ( c6dofimu12_t * ctx,
c6dofimu12_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.