#ifndef I2CDEF_H
#define I2CDEF_H

#include <stdint.h>

const uint8_t I2c_packet_len = 32;

typedef struct
{
  uint16_t i2c_addr;
  unsigned short flags;
  short len; // number of bytes in packet
  char *packet;
} I2c_packet_header_t;

typedef struct
{
  uint8_t pwm_no; // 0=1a, 1=1b, 2=1c, 3=3a, 4=3b, 5=3c
  uint16_t pulse_value;  // given in usec
} I2c_pwm_packet_t;

typedef struct
{
  struct I2c_packet_header_t *addr;
  int packet_count;
} I2c_ioctl_packet_t;

#endif

