Microchip® Advanced Software Framework

memorymap.h File Reference

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 */

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.

Returns
returns a NO_MATCH if registers don't match, MATCH if they do

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().