#ifndef BQ27Z561_TWI_INTERFACE_H_
#define BQ27Z561_TWI_INTERFACE_H_

#include <stdbool.h>
#include <stdint.h>

typedef struct {
    bool (*open)(uint32_t speed);
    bool (*read)(uint8_t dev_addr, const uint8_t *reg, uint8_t reg_len, void *data, uint16_t len);
    bool (*write)(uint8_t dev_addr, const uint8_t *reg, uint8_t reg_len, const void *data, uint16_t len);
    void (*close)(void);
} TwiInterface;

#endif
