![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
xDotBridge/src/BaseboardIO.cpp
- Committer:
- Matt Briggs
- Date:
- 2017-01-30
- Revision:
- 41:9ef4c4d77711
- Parent:
- 40:2ec4be320961
- Child:
- 44:ece6330e9b57
File content as of revision 41:9ef4c4d77711:
/* * baseboardIO.cpp * * Created on: Jan 25, 2017 * Author: mbriggs */ #include "BaseboardIO.h" #include "MTSLog.h" BaseboardIO::BaseboardIO() { mCCInIntCallback = NULL; mTamperIntCallback = NULL; mPairBtnIntCallback = NULL; std::memset(portExpanderROM0, 0x00, 8); std::memset(portExpanderROM1, 0x00, 8); portExpanderVal0 = 0x00; portExpanderVal1 = 0x00; } CmdResult BaseboardIO::init() { logError("Not implemented yet!!!"); } // Registering for interrupts void BaseboardIO::regCCInInt(void (*callback) (void)) { mCCInIntCallback = callback; } void BaseboardIO::regTamperInt(void (*callback) (void)) { mTamperIntCallback = callback; } void BaseboardIO::regPairBtnInt(void (*callback) (void)) { logError("Not implemented yet!!!"); } // Input CmdResult BaseboardIO::sampleUserSwitches() { logError("Not implemented yet!!!"); return cmdError; } bool BaseboardIO::isPairBtn() { logError("Not implemented yet!!!"); return false; } bool BaseboardIO::isCCOutNO() { logError("Not implemented yet!!!"); return false; } bool BaseboardIO::isRx() { logError("Not implemented yet!!!"); return false; } bool BaseboardIO::isLoRaWANMode() { logError("Not implemented yet!!!"); return false; } uint8_t BaseboardIO::rotarySwitch1() { logError("Not implemented yet!!!"); return 0; } uint8_t BaseboardIO::rotarySwitch2() { logError("Not implemented yet!!!"); return 0; } // Output CmdResult BaseboardIO::ledOn() { logError("Not implemented yet!!!"); return cmdError; } CmdResult BaseboardIO::ledOff() { logError("Not implemented yet!!!"); return cmdError; } CmdResult BaseboardIO::relayAlert() { logError("Not implemented yet!!!"); return cmdError; } CmdResult BaseboardIO::relayNormal() { logError("Not implemented yet!!!"); return cmdError; } // Future CmdResult BaseboardIO::serialRx(bool enable) { logError("Not implemented yet!!!"); return cmdError; } CmdResult BaseboardIO::serialTx(bool enable) { logError("Not implemented yet!!!"); return cmdError; } // private CmdResult readInfoFromEEPROM() { logError("Not implemented yet!!!"); return cmdError; } CmdResult writeInfoToEEPROM() { logError("Not implemented yet!!!"); return cmdError; } CmdResult identifyPortExpanders() { logError("Not implemented yet!!!"); return cmdError; }