2011-11-27 08:01:29 +00:00
|
|
|
/*
|
|
|
|
* simm_electrical_test.h
|
|
|
|
*
|
|
|
|
* Created on: Nov 26, 2011
|
|
|
|
* Author: Doug
|
2012-05-26 03:21:04 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2011-2012 Doug Brown
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
2011-11-27 08:01:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SIMM_ELECTRICAL_TEST_H_
|
|
|
|
#define SIMM_ELECTRICAL_TEST_H_
|
|
|
|
|
2011-12-18 18:18:30 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define GROUND_FAIL_INDEX 0xFF
|
|
|
|
|
|
|
|
#define FIRST_ADDRESS_LINE_FAIL_INDEX 0
|
|
|
|
#define LAST_ADDRESS_LINE_FAIL_INDEX (FIRST_ADDRESS_LINE_FAIL_INDEX + 20)
|
|
|
|
#define FIRST_DATA_LINE_FAIL_INDEX (LAST_ADDRESS_LINE_FAIL_INDEX + 1)
|
|
|
|
#define LAST_DATA_LINE_FAIL_INDEX (FIRST_DATA_LINE_FAIL_INDEX + 31)
|
|
|
|
#define CS_FAIL_INDEX (LAST_DATA_LINE_FAIL_INDEX + 1)
|
|
|
|
#define OE_FAIL_INDEX (CS_FAIL_INDEX + 1)
|
|
|
|
#define WE_FAIL_INDEX (OE_FAIL_INDEX + 1)
|
|
|
|
|
|
|
|
int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t));
|
2011-11-27 08:01:29 +00:00
|
|
|
|
|
|
|
#endif /* SIMM_ELECTRICAL_TEST_H_ */
|