Specifications

Table Of Contents
Code for Third-Party Readers
Using the SkyePlus Multiplexer with Other Devices 35
Copyright 2008 SkyeTek, Inc. All Rights Reserved. Version 080715
Mux.h
/******************************************************************************
* Copyright (c) 2006, Skyetek, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the “Software”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify,
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
******************************************************************************/
/************************************************************
* !!!EXAMPLE NAMES ONLY!!!
* Processor specific settings
* Replace with the names of your IO port and data direction registers.
* Replace with appropriate bit masks.
************************************************************/
//IO port registers
#define MUX_A0_IO (PORTA)
#define MUX_A1_IO (PORTA)
#define MUX_A2_IO (PORTA)
//IO Direction registers
#define MUX_A0_DIR (DDRA)
#define MUX_A1_DIR (DDRA)
#define MUX_A2_DIR (DDRA)
//Bit Mask needed to set data direction register as an output
#define MUX_A0_DIR_MASK (0xFE) //(MSB) 1111 1110 (LSB)
#define MUX_A1_DIR_MASK (0xFD) //(MSB) 1111 1101 (LSB)
#define MUX_A2_DIR_MASK (0xFB) //(MSB) 1111 1011 (LSB)
//Bit Mask needed for reading and for writing a high to the IO ports
#define MUX_A0_IO_MASK (0x01) //(MSB) 0000 0001 (LSB)
#define MUX_A1_IO_MASK (0x02) //(MSB) 0000 0010 (LSB)
#define MUX_A2_IO_MASK (0x04) //(MSB) 0000 0100 (LSB)