/*---------------------------------------------------------------------------*\

  FILE........: horus_l2.h
  AUTHOR......: David Rowe
  DATE CREATED: Dec 2015

\*---------------------------------------------------------------------------*/

#ifndef __HORUS_L2__
#define __HORUS_L2__

int horus_l2_get_num_tx_data_bytes(int num_payload_data_bytes);

/* returns number of output bytes in output_tx_data */
int horus_l2_encode_tx_packet(unsigned char *output_tx_data,
        unsigned char *input_payload_data,
        int num_payload_data_bytes);

void horus_l2_decode_rx_packet(unsigned char *output_payload_data,
        unsigned char *input_rx_data,
        int num_payload_data_bytes);

#endif
