// $Id: addr.h,v 1.3 2004/07/05 23:25:39 alpha Exp $
//
// Copyright (c) 1999-2004 Darius Rad
//
// This file is part of the OpenOtto project.
//
// OpenOtto 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.
//

/// \file
/// \brief Network address formats
///
/// Including data from ??? (list specs)


#ifndef _OTTO_ADDR_H
#define _OTTO_ADDR_H


/// \brief Physical address lookup
/// Return string describing the specified physical address
/// \return Zero on success, error on failure
int
otto_phyadr_lookup(
  unsigned char adr,  ///< Physical address
  char *desc,  ///< Buffer to store address description
  size_t size  ///< Size of desc
);


/// \brief Diagnostic mode primary ID functional address command/status bit
/// If bit is clear, message is command.  If bit is set, message is status.
#define OTTO_FUNCADR_STATUS_BIT 0x01


#endif
