|
|
@ -107,9 +107,10 @@ class Wiz810MjDevice {
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
void _init(void);
|
|
|
|
void _init(void);
|
|
|
|
|
|
|
|
byte * _packBuffer(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
|
|
|
|
|
|
|
|
int _resetPin;
|
|
|
|
int _resetPin;
|
|
|
|
|
|
|
|
|
|
|
|
byte _scratchBuffer[6]; // Can we make this static?
|
|
|
|
byte _scratchBuffer[6]; // Can we make this static?
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -158,7 +159,7 @@ void Wiz810MjDevice::_init(void) {
|
|
|
|
sysinit(0x55, 0x55);
|
|
|
|
sysinit(0x55, 0x55);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -166,8 +167,15 @@ void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
_scratchBuffer[1] = b1;
|
|
|
|
_scratchBuffer[1] = b1;
|
|
|
|
_scratchBuffer[2] = b2;
|
|
|
|
_scratchBuffer[2] = b2;
|
|
|
|
_scratchBuffer[3] = b3;
|
|
|
|
_scratchBuffer[3] = b3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _scratchBuffer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
setSIPR(_scratchBuffer);
|
|
|
|
*/
|
|
|
|
|
|
|
|
setSIPR(_packBuffer(b0, b1, b2, b3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------- */
|
|
|
|
/* ----------------------- */
|
|
|
|