18#ifndef __VSF_TEMPLATE_SPI_H__
19#define __VSF_TEMPLATE_SPI_H__
25#if VSF_HAL_USE_SPI == ENABLED
36typedef void vsf_i_spi_isrhandler_t(
void *target_ptr,
58 implement(i_peripheral_t);
vsf_err_t
Definition __type.h:42
uint_fast8_t uintalu_t
Definition type.h:88
vsf_arch_prio_t
Definition cortex_a_generic.h:88
end_def_interface(i_pm_wakeup_t) struct vsf_pm_pclk_cfg_t
Definition device.h:249
unsigned int uint32_t
Definition lvgl.h:43
void(* Enable)(vsf_spi_irq_mask_t mask)
Definition spi_interface.h:103
void(* Set)(uintalu_t tIndex)
Definition spi_interface.h:67
vsf_err_t(* Cancel)(void)
cancel on going communication
Definition spi_interface.h:96
const i_spi_t vsf_spi_irq_mask_t irq_mask
Definition spi_interface.h:38
vsf_err_t(* RequestTransfer)(void *pOutput, void *pInput, uint_fast32_t nCount)
request a block exchanging access !
Definition spi_interface.h:93
int_fast32_t(* GetTransferedCount)(void)
get transferred count
Definition spi_interface.h:99
def_interface(i_spi_t) union
class: spi_t
Definition spi_interface.h:56
void(* Transfer)(void *pOutput, uint_fast32_t *pOutCount, void *pInput, uint_fast32_t *pInCount)
< read/write of fifo
Definition spi_interface.h:73
void(* Clear)(uintalu_t tIndex)
Definition spi_interface.h:68
bool(* Flush)(void)
Definition spi_interface.h:78
vsf_err_t(* Init)(i_spi_cfg_t *cfg_ptr)
Definition spi_interface.h:64
void(* Disable)(vsf_spi_irq_mask_t mask)
Definition spi_interface.h:104
dcl_interface(i_spi_t) typedef void vsf_i_spi_isrhandler_t(void *target_ptr
const i_spi_t * i_spi_ptr
Definition spi_interface.h:37
unsigned int uint_fast32_t
Definition stdint.h:27
int int_fast32_t
Definition stdint.h:26
spi configuration for interface
Definition spi_interface.h:49
vsf_i_spi_isr_t isr
Definition spi_interface.h:52
uint32_t clock_hz
Definition spi_interface.h:51
uint32_t mode
spi working mode
Definition spi_interface.h:50
spi isr for interface
Definition spi_interface.h:41
void * target_ptr
Definition spi_interface.h:43
vsf_i_spi_isrhandler_t * handler_fn
Definition spi_interface.h:42
vsf_arch_prio_t prio
Definition spi_interface.h:44
Definition vsf_template_spi.h:495
Definition vsf_template_spi.h:484
vsf_spi_irq_mask_t
Predefined VSF SPI interrupt that can be reimplemented in specific hal drivers.
Definition vsf_template_spi.h:454