/******************************************************************************/
/*                       Copyright 2001 Broadcom Corporation                  */
/*                                                                            */
/* This material is the confidential trade secret and proprietary information */
/* of Broadcom Corp.  It may not be reproduced, used, sold or transferred to  */
/* any third party without the prior written consent of Broadcom Corp.        */
/* All rights reserved.                                                       */
/******************************************************************************/
/*   FileName        : bcm_asciCodec.h                                        */
/*   Purpose         : Header for bcm_asciCodec.c                             */
/*   Limitations     : None                                                   */
/*   Author          : Emmanuel Hanssens                                      */
/*   Creation Date   : 19-Dec-2001                                            */
/*   History         : Compiled by CVS                                        */
/******************************************************************************/
/*   $Id: bcm_asciCodec.h,v 1.4 2004/06/22 13:51:00 hanssens Exp $  */
/******************************************************************************/

#ifndef ASCI_CODEC_H
# define ASCI_CODEC_H

# include "bcm_userdef.h"

/* double the size of each byte by asci encoding each nibble */
# define ASCI_MIN_ENCODE_SIZE(size) (2*(size))
/* take into account added bytes */
# define ASCI_MAX_ENCODE_SIZE(size) (2*(size)+6)

# define ASCI_DECODE_SIZE(size) (size/2)

/* functions declarations */
uint32 asciDecode(uint8 *data, uint32 size, int prefix);
uint32 asciEncode(uint8 *dest, uint8 *src, uint32 size, int prefix);
int    getLine   (char *s, int lim);

#endif
