Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedef

This section introduces the typedef that SPIM OS-HAL used. More...

Overview

This section introduces the typedef that SPIM OS-HAL used.

Typedefs

typedef int(* spi_usr_complete_callback )(void *context)
 This defines the callback function prototype. More...
 

Typedef Documentation

typedef int(* spi_usr_complete_callback)(void *context)

This defines the callback function prototype.

It's called to report transaction completions.
User can register the callback function when using SPIM mtk_os_hal_spim_async_transfer API.
When one transaction is done, this user callback will be called in fifo interrupt function (fifo mode) or in dma callback function (dma mode).

Parameters
[in]context: the argument to spi_usr_complete_callback() when it's called.