c6dofimu11 2.0.0.0

Functions

void c6dofimu11_cfg_setup (c6dofimu11_cfg_t *cfg)
 Config Object Initialization function.
 
C6DOFIMU11_RETVAL c6dofimu11_init (c6dofimu11_t *ctx, c6dofimu11_cfg_t *cfg)
 Initialization function.
 
void c6dofimu11_default_cfg (c6dofimu11_t *ctx)
 Click Default Configuration function.
 
void c6dofimu11_generic_write (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c6dofimu11_generic_read (c6dofimu11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
void c6dofimu11_write_byte (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t write_data)
 This function write byte.
 
uint8_t c6dofimu11_read_byte (c6dofimu11_t *ctx, uint8_t reg_address)
 This function read byte.
 
void c6dofimu11_write_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_write_data, uint8_t n_bytes)
 This function write multiple bytes.
 
void c6dofimu11_read_multiple_bytes (c6dofimu11_t *ctx, uint8_t reg_address, uint8_t *p_read_data, uint8_t n_bytes)
 This function read multiple bytes.
 
uint8_t c6dofimu11_check_id (c6dofimu11_t *ctx)
 This function check id.
 
void c6dofimu11_disable_sensor (c6dofimu11_t *ctx)
 Disable sensor.
 
void c6dofimu11_enable_sensor (c6dofimu11_t *ctx, uint8_t en_accel, uint8_t en_mag, uint8_t en_temp)
 Enable sensor.
 
void c6dofimu11_config_accel (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_range, uint8_t data_resolution)
 Configuration accel.
 
void c6dofimu11_config_mag (c6dofimu11_t *ctx, uint8_t data_rate, uint8_t data_resolution)
 Configuration map.
 
int16_t c6dofimu11_get_axis (c6dofimu11_t *ctx, uint8_t reg_add_lsb)
 Get axis.
 
void c6dofimu11_get_accel_data (c6dofimu11_t *ctx, int16_t *accel_x, int16_t *accel_y, int16_t *accel_z)
 Get accel data.
 
void c6dofimu11_get_mag_data (c6dofimu11_t *ctx, int16_t *mag_x, int16_t *mag_y, int16_t *mag_z)
 Get map data.
 
void c6dofimu11_read_accel (c6dofimu11_t *ctx, c6dofimu11_accel_t *accel_data)
 Read accel.
 
void c6dofimu11_read_mag (c6dofimu11_t *ctx, c6dofimu11_mag_t *mag_data)
 Read mag.
 
void c6dofimu11_enable_temperature_data (c6dofimu11_t *ctx)
 Enable temperature data.
 
float c6dofimu11_get_temperature (c6dofimu11_t *ctx)
 Get temperature.
 
uint8_t c6dofimu11_get_interrupt (c6dofimu11_t *ctx)
 Get interrupt.
 

Detailed Description

Function Documentation

◆ c6dofimu11_cfg_setup()

void c6dofimu11_cfg_setup ( c6dofimu11_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.

◆ c6dofimu11_check_id()

uint8_t c6dofimu11_check_id ( c6dofimu11_t * ctx)

This function check id.

Parameters
ctxClick object.

@description This function chek id.

◆ c6dofimu11_config_accel()

void c6dofimu11_config_accel ( c6dofimu11_t * ctx,
uint8_t data_rate,
uint8_t data_range,
uint8_t data_resolution )

Configuration accel.

Parameters
ctxClick object.
data_rateData rate.
data_rangeData range.
data_resolutionData resolution

@description This function configuration accel.

◆ c6dofimu11_config_mag()

void c6dofimu11_config_mag ( c6dofimu11_t * ctx,
uint8_t data_rate,
uint8_t data_resolution )

Configuration map.

Parameters
ctxClick object.
data_rangeData range.
data_resolutionData resolution

@description This function configuration map.

◆ c6dofimu11_default_cfg()

void c6dofimu11_default_cfg ( c6dofimu11_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

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

◆ c6dofimu11_disable_sensor()

void c6dofimu11_disable_sensor ( c6dofimu11_t * ctx)

Disable sensor.

Parameters
ctxClick object.

@description This function disable sensor.

◆ c6dofimu11_enable_sensor()

void c6dofimu11_enable_sensor ( c6dofimu11_t * ctx,
uint8_t en_accel,
uint8_t en_mag,
uint8_t en_temp )

Enable sensor.

Parameters
ctxClick object.
en_accelEn accel.
en_magEn mag.
en_tempEn temp.

@description This function enable sensor.

◆ c6dofimu11_enable_temperature_data()

void c6dofimu11_enable_temperature_data ( c6dofimu11_t * ctx)

Enable temperature data.

Parameters
ctxClick object.

@description This function enable temperature data.

◆ c6dofimu11_generic_read()

void c6dofimu11_generic_read ( c6dofimu11_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.

◆ c6dofimu11_generic_write()

void c6dofimu11_generic_write ( c6dofimu11_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.

◆ c6dofimu11_get_accel_data()

void c6dofimu11_get_accel_data ( c6dofimu11_t * ctx,
int16_t * accel_x,
int16_t * accel_y,
int16_t * accel_z )

Get accel data.

Parameters
ctxClick object.
accel_xAccel x.
accel_yAccel y.
accel_zAccel z.

@description This function get accel data.

◆ c6dofimu11_get_axis()

int16_t c6dofimu11_get_axis ( c6dofimu11_t * ctx,
uint8_t reg_add_lsb )

Get axis.

Parameters
ctxClick object.
reg_add_lsbRegistar add lsb.

@description This function get axis.

◆ c6dofimu11_get_interrupt()

uint8_t c6dofimu11_get_interrupt ( c6dofimu11_t * ctx)

Get interrupt.

Parameters
ctxClick object.

@description This function get interrupt.

◆ c6dofimu11_get_mag_data()

void c6dofimu11_get_mag_data ( c6dofimu11_t * ctx,
int16_t * mag_x,
int16_t * mag_y,
int16_t * mag_z )

Get map data.

Parameters
ctxClick object.
mag_xMag x.
mag_yMag y.
mag_zMag z.

@description This function get map data.

◆ c6dofimu11_get_temperature()

float c6dofimu11_get_temperature ( c6dofimu11_t * ctx)

Get temperature.

Parameters
ctxClick object.

@description This function get temperature.

◆ c6dofimu11_init()

C6DOFIMU11_RETVAL c6dofimu11_init ( c6dofimu11_t * ctx,
c6dofimu11_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ c6dofimu11_read_accel()

void c6dofimu11_read_accel ( c6dofimu11_t * ctx,
c6dofimu11_accel_t * accel_data )

Read accel.

Parameters
ctxClick object.
accel_dataAccel data.

@description This function read accel.

◆ c6dofimu11_read_byte()

uint8_t c6dofimu11_read_byte ( c6dofimu11_t * ctx,
uint8_t reg_address )

This function read byte.

Parameters
ctxClick object.
regRegister address.

@description This function reads data from the desired register.

◆ c6dofimu11_read_mag()

void c6dofimu11_read_mag ( c6dofimu11_t * ctx,
c6dofimu11_mag_t * mag_data )

Read mag.

Parameters
ctxClick object.
mag_dataMag data.

@description This function read.

◆ c6dofimu11_read_multiple_bytes()

void c6dofimu11_read_multiple_bytes ( c6dofimu11_t * ctx,
uint8_t reg_address,
uint8_t * p_read_data,
uint8_t n_bytes )

This function read multiple bytes.

Parameters
ctxClick object.
regRegister address.
p_read_dataRead data.
n_bytesNumber of the bytes to be read

@description This function reads multiple data from the desired register.

◆ c6dofimu11_write_byte()

void c6dofimu11_write_byte ( c6dofimu11_t * ctx,
uint8_t reg_address,
uint8_t write_data )

This function write byte.

Parameters
ctxClick object.
regRegister address.
write_dataWrite data

@description This function write data from the desired register.

◆ c6dofimu11_write_multiple_bytes()

void c6dofimu11_write_multiple_bytes ( c6dofimu11_t * ctx,
uint8_t reg_address,
uint8_t * p_write_data,
uint8_t n_bytes )

This function write multiple bytes.

Parameters
ctxClick object.
regRegister address.
p_write_dataWrite data.
n_bytesNumber of the bytes to be read.

@description This function write multiple bytes from the desired register.