Subversion Repositories freemyipod

Rev

Blame | Last modification | View Log | RSS feed

#ifndef __DEVICE_D1759_BACKLIGHT_MANAGER_H__
#define __DEVICE_D1759_BACKLIGHT_MANAGER_H__

#include "global.h"
#include "interface/backlight_manager/backlight_manager.h"
#include "protocol/i2c/i2c.h"


struct __attribute__((packed,aligned(4))) d1759_backlight_manager_driver_config
{
    const struct i2c_driver_instance* i2c;
    uint8_t max_current;
    bool default_fade;
    uint8_t reserved[2];
};

struct __attribute__((packed,aligned(4))) d1759_backlight_manager_driver_state
{
    bool fade;
    uint8_t reserved[3];
};

extern const struct backlight_manager_driver d1759_backlight_manager_driver;


#endif