c6dofimu 2.0.0.0
Public function

Functions

void c6dofimu_cfg_setup (c6dofimu_cfg_t *cfg)
 Config Object Initialization function.
 
C6DOFIMU_RETVAL c6dofimu_init (c6dofimu_t *ctx, c6dofimu_cfg_t *cfg)
 Initialization function.
 
void c6dofimu_default_cfg (c6dofimu_t *ctx)
 Click Default Configuration function.
 
void c6dofimu_generic_write (c6dofimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c6dofimu_generic_read (c6dofimu_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
void c6dofimu_read_axis_data (c6dofimu_t *ctx, uint8_t read_mode)
 Read axis data function.
 
float c6dofimu_read_temperature (c6dofimu_t *ctx)
 Read temperature data function.
 
uint8_t c6dofimu_digital_read_int (c6dofimu_t *ctx)
 Digital read interrupt function.
 

Detailed Description

Function Documentation

◆ c6dofimu_cfg_setup()

void c6dofimu_cfg_setup ( c6dofimu_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.

◆ c6dofimu_default_cfg()

void c6dofimu_default_cfg ( c6dofimu_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

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

◆ c6dofimu_digital_read_int()

uint8_t c6dofimu_digital_read_int ( c6dofimu_t * ctx)

Digital read interrupt function.

Parameters
ctxClick object.

@description This function reads the digital signal from the INT pin.

◆ c6dofimu_generic_read()

void c6dofimu_generic_read ( c6dofimu_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_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.

◆ c6dofimu_generic_write()

void c6dofimu_generic_write ( c6dofimu_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_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.

◆ c6dofimu_init()

C6DOFIMU_RETVAL c6dofimu_init ( c6dofimu_t * ctx,
c6dofimu_cfg_t * cfg )

Initialization function.

Parameters
c6dofimuClick object.
cfgClick configuration structure.

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

◆ c6dofimu_read_axis_data()

void c6dofimu_read_axis_data ( c6dofimu_t * ctx,
uint8_t read_mode )

Read axis data function.

Parameters
ctxClick object.
read_modeRead mode: { Accelerometer | Gyroscope }.

@description This function reads axis data for the gyroscope or the accelerometer from predefined data register addresses.

◆ c6dofimu_read_temperature()

float c6dofimu_read_temperature ( c6dofimu_t * ctx)

Read temperature data function.

Parameters
ctxClick object.

@description This function reads temperature data from predefined data registers.