c13dof 2.0.0.0
main.c File Reference

c13DOF Click example More...

#include "board.h"
#include "log.h"
#include "c13dof.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

float temperature
 
float pressure
 
float humidity
 
int32_t gas_res
 
int16_t accel_x
 
int16_t accel_y
 
int16_t accel_z
 
int16_t gyro_x
 
int16_t gyro_y
 
int16_t gyro_z
 
int16_t mag_x
 
int16_t mag_y
 
int16_t mag_z
 
uint16_t r_hall
 
uint8_t ready_check
 

Detailed Description

c13DOF Click example

Description

This example displays values registered by sensors on click board.

The demo application is composed of two sections :

Application Init

Initialization driver enables - BME680 Low power gas, pressure, temperature & humidity sensor, BMI088 6-axis Motion Tracking Sensor and BMM150 Geomagnetic Sensor, also write log.

Application Task

This is a example which demonstrates the use of 13DOF Click board. Measures and display temperature in degrees Celsius [ C ], humidity data [ % ], pressure [ mbar ] and gas resistance data from the BME680 sensor. Measures and display Accel and Gyro data coordinates values for X-axis, Y-axis and Z-axis from the BMI088 sensor. Measures and display Geomagnetic data coordinates values for X-axis, Y-axis and Z-axis from the BMM150 sensor. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on usb uart changes for each second.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ accel_x

int16_t accel_x

◆ accel_y

int16_t accel_y

◆ accel_z

int16_t accel_z

◆ gas_res

int32_t gas_res

◆ gyro_x

int16_t gyro_x

◆ gyro_y

int16_t gyro_y

◆ gyro_z

int16_t gyro_z

◆ humidity

float humidity

◆ mag_x

int16_t mag_x

◆ mag_y

int16_t mag_y

◆ mag_z

int16_t mag_z

◆ pressure

float pressure

◆ r_hall

uint16_t r_hall

◆ ready_check

uint8_t ready_check

◆ temperature

float temperature