userland/libtock/max17205.c
// Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
static void max17205_cb(__attribute__ ((unused)) int callback_type,
                        int value0,
                        int value1,
                        void* ud) {
  struct max17205_data* data = (struct max17205_data*) ud;
  data->value0 = value0;
  data->value1 = value1;
  data->fired  = true;
}
static void max17205_cb ( __attribute__ ( ( unused ) ) int callback_type , int value0 , int value1 , void * ud ) { struct max17205_data * data = ( struct max17205_data * ) ud ; data -> value0 = value0 ; data -> value1 = value1 ; data -> fired = true ; }
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads