Memory map for QMatrix file.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdint.h>
Data Structures | |
struct | tag_memory_map_body_t |
union | tag_memory_map_t |
Macros | |
#define | CHIPID 0x55u /* HP */ |
#define | FIRST_STATUS_BYTE 2u |
#define | MATCH 0x00 |
#define | NO_MATCH 0xFF |
#define | NUM_STATUS_BYTES 5u |
#define | SWVER 0xAAu /* Revision x.x */ |
Typedefs | |
typedef struct tag_memory_map_body_t | memory_map_body_t |
typedef union tag_memory_map_t | memory_map_t |
Functions | |
uint8_t | comms_match (void) |
Compares last sent values again current values of pertinent registersdetermine match based on key status registers, general status and slider position. More... | |
Variables | |
memory_map_t | memory_map |
uint8_t | sent_status_out [NUM_STATUS_BYTES] |
#define CHIPID 0x55u /* HP */ |
#define FIRST_STATUS_BYTE 2u |
Referenced by comms_match().
#define MATCH 0x00 |
Referenced by comms_match().
#define NO_MATCH 0xFF |
Referenced by comms_match().
#define NUM_STATUS_BYTES 5u |
Referenced by comms_match().
#define SWVER 0xAAu /* Revision x.x */ |
typedef struct tag_memory_map_body_t memory_map_body_t |
typedef union tag_memory_map_t memory_map_t |
uint8_t comms_match | ( | void | ) |
Compares last sent values again current values of pertinent registersdetermine match based on key status registers, general status and slider position.
References tag_memory_map_t::array, FIRST_STATUS_BYTE, MATCH, NO_MATCH, NUM_STATUS_BYTES, and sent_status_out.
memory_map_t memory_map |
Referenced by Touch_measurement().
uint8_t sent_status_out[NUM_STATUS_BYTES] |
Referenced by comms_match().