Jump to content

I2C expander GINPUT


El_Andry

Recommended Posts

You mean this ???? :

example of ginput_lld_toggle_board.h

#ifndef _GDISP_LLD_TOGGLE_BOARD_H
#define _GDISP_LLD_TOGGLE_BOARD_H

static bool_t init_board(GToggle* t, unsigned instance) {
	
}

static GFXINLINE void aquire_bus(GToggle* m) {
    (void)m;
}

static GFXINLINE void release_bus(GToggle* m) {
    (void)m;
}

static void write_reg(GToggle* m, uint8_t reg, uint8_t val) {
    (void)m;

    
}

static uint8_t read_byte(GToggle* m, uint8_t reg) {
    (void)m;
    
    return 0;
}

static uint16_t read_word(GToggle* m, uint8_t reg) {
	(void)m;
	
	return 0;
}



#endif /* _GDISP_LLD_TOGGLE_BOARD_H */

this work  ???

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...