This function is used by higher-level code (such as the resource manager interface) to access the hardware-specific functions. It must be implemented.
int i2c_master_getfuncs(i2c_master_funcs_t *funcs, int tabsize);
This function must fill in the given table with the hardware-specific functions.
The arguments are:
To set an entry in the table, use the I2C_ADD_FUNC() macro:
#define I2C_ADD_FUNC(tabletype, table, entry, func, tabsize) …
For example:
I2C_ADD_FUNC( i2c_master_funcs_t, funcs, init, my_init, tabsize);
The function must return: