/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : CrossbowCommand.cc                                            */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*-----------------------------------------------------------------------*
  CLASS: CrossbowCommand

  DESCRIPTION: Shared mem for Crossbow DMU_AHRS Attitude Heading Reference
  System command channel

  AUTHOR: Aaron Marsh

  $Id: CrossbowCommand.cc,v 1.3 2000/05/12 15:27:18 oreilly Exp $
 *-----------------------------------------------------------------------*/

#include "CrossbowCommand.h"

CrossbowCommand::CrossbowCommand( Access access, Boolean init ) 
     : SharedData( CompassCommandName, sizeof( Data ), access, init )
{

}

CrossbowCommand::~CrossbowCommand()
{

}

void CrossbowCommand::read()
{
  SharedData::read((void *)&data);
}


void CrossbowCommand::write()
{
  SharedData::write((void *)&data);
}

void CrossbowCommand::clear()
{
     data.Request = None;
     data.ZeroSamples = 0;
}
