capwheel2 2.0.0.0
main.c File Reference

CapWheel2 Click example. More...

#include "board.h"
#include "log.h"
#include "capwheel2.h"

Functions

void capwheel2_error ()
 
void capwheel2_get_channels_touch ()
 
void capwheel2_get_channels_halt ()
 
void capwheel2_get_channels_task ()
 
void capwheel2_get_gesture_task ()
 
void capwheel2_get_channel_counts_task ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

CapWheel2 Click example.

Description

This example sets basic device configuration; Contains function for waiting RDY(INT) pin, function for getting RDY(INT) pin state, function for I2C read and write with waiting for RDY(INT) pin and without waiting for RDY(INT) pin.

The demo application is composed of two sections :

Application Init

Initializes CAP Wheel 2 device

Application Task

Executes one of three 'capwheel2_get_xxx_task( )' functions

Additional Functions :

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 )

◆ capwheel2_error()

void capwheel2_error ( )

◆ capwheel2_get_channel_counts_task()

void capwheel2_get_channel_counts_task ( )

◆ capwheel2_get_channels_halt()

void capwheel2_get_channels_halt ( )

◆ capwheel2_get_channels_task()

void capwheel2_get_channels_task ( )

◆ capwheel2_get_channels_touch()

void capwheel2_get_channels_touch ( )

◆ capwheel2_get_gesture_task()

void capwheel2_get_gesture_task ( )

◆ main()

int main ( void )