c6dofimu7 2.0.0.0

Functions

void c6dofimu7_cfg_setup (c6dofimu7_cfg_t *cfg)
 Config Object Initialization function.
 
C6DOFIMU7_RETVAL c6dofimu7_init (c6dofimu7_t *ctx, c6dofimu7_cfg_t *cfg)
 Initialization function.
 
void c6dofimu7_default_cfg (c6dofimu7_t *ctx)
 Click Default Configuration function.
 
void c6dofimu7_generic_write (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c6dofimu7_generic_read (c6dofimu7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
int16_t c6dofimu7_read_word (c6dofimu7_t *ctx, uint8_t address)
 Read word function.
 
float c6dofimu7_get_temp_data (c6dofimu7_t *ctx, float temp_sensitivity, float temp_offset)
 Get temperature data function.
 
void c6dofimu7_get_accel_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *accel, float sensitivity)
 Get accelerometer data function.
 
void c6dofimu7_get_gyro_data (c6dofimu7_t *ctx, c6dofimu7_axis_t *gyro, float sensitivity)
 Get gyroscope data function.
 
uint8_t c6dofimu7_get_pwm_input (c6dofimu7_t *ctx)
 Get PWM input function.
 
uint8_t c6dofimu7_get_int_input (c6dofimu7_t *ctx)
 Get INT input function.
 

Detailed Description

Function Documentation

◆ c6dofimu7_cfg_setup()

void c6dofimu7_cfg_setup ( c6dofimu7_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.

◆ c6dofimu7_default_cfg()

void c6dofimu7_default_cfg ( c6dofimu7_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for 6DofImu7 click.

◆ c6dofimu7_generic_read()

void c6dofimu7_generic_read ( c6dofimu7_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

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

@description This function reads data from the desired register.

◆ c6dofimu7_generic_write()

void c6dofimu7_generic_write ( c6dofimu7_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

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

@description This function writes data to the desired register.

◆ c6dofimu7_get_accel_data()

void c6dofimu7_get_accel_data ( c6dofimu7_t * ctx,
c6dofimu7_axis_t * accel,
float sensitivity )

Get accelerometer data function.

Parameters
ctxClick object.
accelAccelerometer axis structure.
sensitivityAccelerometer sensitivity value.

@description This function reads accelerometer axis data and configures the accel axis struct.

◆ c6dofimu7_get_gyro_data()

void c6dofimu7_get_gyro_data ( c6dofimu7_t * ctx,
c6dofimu7_axis_t * gyro,
float sensitivity )

Get gyroscope data function.

Parameters
ctxClick object.
gyroGyroscope axis structure.
sensitivityGyroscope sensitivity value.

@description This function reads gyroscope axis data and configures the gyro axis struct.

◆ c6dofimu7_get_int_input()

uint8_t c6dofimu7_get_int_input ( c6dofimu7_t * ctx)

Get INT input function.

Parameters
ctxClick object.

@description This function reads input from the int pin.

◆ c6dofimu7_get_pwm_input()

uint8_t c6dofimu7_get_pwm_input ( c6dofimu7_t * ctx)

Get PWM input function.

Parameters
ctxClick object.

@description This function reads input from the pwm pin.

◆ c6dofimu7_get_temp_data()

float c6dofimu7_get_temp_data ( c6dofimu7_t * ctx,
float temp_sensitivity,
float temp_offset )

Get temperature data function.

Parameters
ctxClick object.
temp_sensitivityTemperature sensitivity value.
temp_offsetTemperature offset value.

@description This function reads and returns temperature data.

◆ c6dofimu7_init()

C6DOFIMU7_RETVAL c6dofimu7_init ( c6dofimu7_t * ctx,
c6dofimu7_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ c6dofimu7_read_word()

int16_t c6dofimu7_read_word ( c6dofimu7_t * ctx,
uint8_t address )

Read word function.

Parameters
ctxClick object.
addressRegister address.

@description This function reads 2 bytes of data from the specified address.