QTouch component example with I2C interface.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | configure_console (void) |
Configure serial console. More... | |
static void | init_interface (void) |
Initialize TWI communication interface. More... | |
int | main (void) |
Main entry point for QTouch component example. More... | |
Variables | |
struct qt_setup_block | setup_block |
Storage for QT setup block. More... | |
struct qt_status | status |
Storage for QT status. More... | |
|
static |
Configure serial console.
References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_PARITY, and stdio_serial_init().
Referenced by main().
|
static |
Initialize TWI communication interface.
References BOARD_QT_TWI_INSTANCE, twi_options::speed, and twi_master_setup().
Referenced by main().
int main | ( | void | ) |
Main entry point for QTouch component example.
References board_init(), BOARD_NAME, configure_console(), example_process_qt_status(), example_set_qt_param(), init_interface(), qt_get_comm_ready(), qt_get_status(), qt_hardware_reset(), qt_is_change_line_low(), qt_read_setup_block(), qt_write_setup_block(), setup_block, status, STATUS_OK, and sysclk_init().
struct qt_setup_block setup_block |
Storage for QT setup block.
Referenced by main().
struct qt_status status |
Storage for QT status.
Referenced by main(), twi_master_init(), twi_master_read(), twi_master_write(), twi_slave_read(), and twi_slave_write().