Changeset 94

Show
Ignore:
Timestamp:
12/08/07 03:21:06 (12 months ago)
Author:
follower
Message:

Add six-byte buffer packing method to allow for MAC address configuration.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde

    r93 r94  
    111111    void _init(void); 
    112112    byte * _packBuffer(byte b0, byte b1, byte b2, byte b3); 
     113    byte * _packBuffer(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5); 
    113114     
    114115    int _resetPin; 
     
    166167   
    167168   */ 
     169  return _packBuffer(b0, b1, b2, b3, 0, 0); // Adds two bytes of padding 
     170} 
     171 
     172byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5) { 
     173  /* 
     174   
     175   */ 
    168176  _scratchBuffer[0] = b0; 
    169177  _scratchBuffer[1] = b1; 
    170178  _scratchBuffer[2] = b2; 
    171179  _scratchBuffer[3] = b3; 
     180  _scratchBuffer[4] = b4; 
     181  _scratchBuffer[5] = b5; 
    172182 
    173183  return _scratchBuffer; 
    174184} 
     185 
    175186 
    176187void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {