 #ifndef TAS5756_DSP_H
#define TAS5756_DSP_H

typedef unsigned char cfg_u8;

typedef union {
    struct {
        cfg_u8 offset;
        cfg_u8 value;
    };
    struct {
        cfg_u8 command;
        cfg_u8 param;
    };
} cfg_reg;

#define CFG_META_SWITCH (255)
#define CFG_META_DELAY  (254)
#define CFG_META_BURST  (253)

/*
 * DSP script minimo
 * HPF circa 60Hz
 * usa un solo biquad
 */

const cfg_reg registers[] =
{
    /* page 0 */
    { 0x00,0x00 },

    /* vai alla memoria coefficienti DSP */
    { 0x00,0x2C },

    /* biquad coefficient */
    { 0x08,0x7F },
    { 0x09,0xFF },
    { 0x0A,0x00 },
    { 0x0B,0x00 },

    { 0x0C,0x80 },
    { 0x0D,0x00 },
    { 0x0E,0x00 },
    { 0x0F,0x00 },

    { 0x10,0x7F },
    { 0x11,0x00 },
    { 0x12,0x00 },
    { 0x13,0x00 },

    { CFG_META_DELAY,1 }
};

#endif
