#ifndef _ADCM_EV_IMPL_H
#define _ADCM_EV_IMPL_H 1

#ifdef __cplusplus
extern "C" {
#endif

#include "adcm16.h"
#include "adcm_chbuf_impl.h"

enum {ADCM_EV_MAX_CH = 16};

  struct adcm_ev_t {
    unsigned int flags;
    unsigned int ec;
    unsigned int bc;
    unsigned int ts;
    unsigned short ncb; // number of used channel buffers
    short bn[ADCM_N_CH]; // chbuf index for channel []
    struct adcm_chbuf_t cb[ADCM_EV_MAX_CH];
//    struct adcm_chbuf_t ch[ADCM_N_CH];
  };

#ifdef __cplusplus
}
#endif

#endif /* _ADCM_EV_IMPL_H */
