examples/tests/spi/spi_controller_transfer/main.c
static void write_cb(__attribute__ ((unused)) int arg0,
                     __attribute__ ((unused)) int arg2,
                     __attribute__ ((unused)) int arg3,
                     __attribute__ ((unused)) void* userdata) {
  led_toggle(0);
  if (toggle) {
    printf("Check wbuf against ibuf.\n");
    buffer_eq (wbuf, ibuf);
  } else {
    printf("Check rbuf against zbuf.\n");
    buffer_eq (rbuf, zbuf);
  }
  printf("Transfer complete.\n");
}
// This callback occurs when a read_write call completed.
// Note that we do not start another transfer here, and
// we simply check for buffer equality.
This callback occurs when a read_write call completed.
Note that we do not start another transfer here, and
we simply check for buffer equality.
This callback occurs when a read_write call completed . Note that we do not start another transfer here and we simply check for buffer equality .
static void write_cb(__attribute__ ((unused)) int arg0,
                     __attribute__ ((unused)) int arg2,
                     __attribute__ ((unused)) int arg3,
                     __attribute__ ((unused)) void* userdata) {
  led_toggle(0);
  if (toggle) {
    printf("Check wbuf against ibuf.\n");
    buffer_eq (wbuf, ibuf);
  } else {
    printf("Check rbuf against zbuf.\n");
    buffer_eq (rbuf, zbuf);
  }
  printf("Transfer complete.\n");
}
static void write_cb ( __attribute__ ( ( unused ) ) int arg0 , __attribute__ ( ( unused ) ) int arg2 , __attribute__ ( ( unused ) ) int arg3 , __attribute__ ( ( unused ) ) void * userdata ) { led_toggle ( 0 ) ; if ( toggle ) { printf ( " \n " ) ; buffer_eq ( wbuf , ibuf ) ; } else { printf ( " \n " ) ; buffer_eq ( rbuf , zbuf ) ; } printf ( " \n " ) ; }
This callback occurs when a read_write call completed.
This callback occurs when a read_write call completed .