10 #include "NotifyListener.h"
11 #include "hal/Types.h"
13 typedef void (*HAL_SpiReadAutoReceiveBufferCallback)(
const char* name,
17 int32_t* outputCount);
23 void HALSIM_ResetSPIData(int32_t index);
25 int32_t HALSIM_RegisterSPIInitializedCallback(int32_t index,
26 HAL_NotifyCallback callback,
28 HAL_Bool initialNotify);
29 void HALSIM_CancelSPIInitializedCallback(int32_t index, int32_t uid);
30 HAL_Bool HALSIM_GetSPIInitialized(int32_t index);
31 void HALSIM_SetSPIInitialized(int32_t index, HAL_Bool initialized);
33 int32_t HALSIM_RegisterSPIReadCallback(int32_t index,
34 HAL_BufferCallback callback,
36 void HALSIM_CancelSPIReadCallback(int32_t index, int32_t uid);
38 int32_t HALSIM_RegisterSPIWriteCallback(int32_t index,
39 HAL_ConstBufferCallback callback,
41 void HALSIM_CancelSPIWriteCallback(int32_t index, int32_t uid);
43 int32_t HALSIM_RegisterSPIReadAutoReceivedDataCallback(
44 int32_t index, HAL_SpiReadAutoReceiveBufferCallback callback,
void* param);
45 void HALSIM_CancelSPIReadAutoReceivedDataCallback(int32_t index, int32_t uid);