18#ifndef __HAL_DRIVER_NUVOTON_M480_SPI_H__
19#define __HAL_DRIVER_NUVOTON_M480_SPI_H__
24#include "../../__device.h"
26#if VSF_HAL_USE_SPI == ENABLED
32#define SPI_SSCTL_POS 21
34#define VSF_SPI_CFG_REIMPLEMENT_TYPE_MODE ENABLED
35#define VSF_SPI_CFG_REIMPLEMENT_TYPE_STATUS ENABLED
36#define VSF_SPI_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
122#define VSF_SPI_CFG_DEC_PREFIX vsf_hw
123#define VSF_SPI_CFG_DEC_UPCASE_PREFIX VSF_HW
vsf_spi_mode_t
Definition spi.h:33
@ VSF_SPI_DATASIZE_31
Definition spi.h:67
@ VSF_SPI_SLAVE
Definition spi.h:34
@ VSF_SPI_DATASIZE_16
Definition spi.h:52
@ VSF_SPI_DATASIZE_28
Definition spi.h:64
@ VSF_SPI_DATASIZE_17
Definition spi.h:53
@ VSF_SPI_DATASIZE_9
Definition spi.h:45
@ VSF_SPI_DATASIZE_18
Definition spi.h:54
@ VSF_SPI_DATASIZE_11
Definition spi.h:47
@ VSF_SPI_MODE_1
Definition spi.h:38
@ VSF_SPI_DATASIZE_20
Definition spi.h:56
@ VSF_SPI_DATASIZE_21
Definition spi.h:57
@ VSF_SPI_DATASIZE_8
datasize is 8 bits
Definition spi.h:44
@ VSF_SPI_DATASIZE_27
Definition spi.h:63
@ VSF_SPI_DATASIZE_14
Definition spi.h:50
@ VSF_SPI_MASTER
Definition spi.h:35
@ VSF_SPI_DATASIZE_26
Definition spi.h:62
@ VSF_SPI_DATASIZE_13
Definition spi.h:49
@ VSF_SPI_DATASIZE_32
Definition spi.h:68
@ VSF_SPI_DATASIZE_12
Definition spi.h:48
@ VSF_SPI_DATASIZE_22
Definition spi.h:58
@ VSF_SPI_MODE_0
Definition spi.h:37
@ VSF_SPI_DATASIZE_24
Definition spi.h:60
@ VSF_SPI_DATASIZE_29
Definition spi.h:65
@ VSF_SPI_DATASIZE_25
Definition spi.h:61
@ VSF_SPI_MODE_3
Definition spi.h:40
@ VSF_SPI_DATASIZE_30
Definition spi.h:66
@ VSF_SPI_DATASIZE_19
Definition spi.h:55
@ VSF_SPI_DATASIZE_23
Definition spi.h:59
@ VSF_SPI_MODE_2
Definition spi.h:39
@ VSF_SPI_DATASIZE_10
Definition spi.h:46
@ VSF_SPI_DATASIZE_15
Definition spi.h:51
#define SPI_SSCTL_POS
Definition spi.h:32
vsf_spi_irq_mask_t
Definition spi.h:41
@ VSF_SPI_IRQ_MASK_CPL
Definition spi.h:43
@ VSF_SPI_IRQ_MASK_TX_CPL
Definition spi.h:42
struct vsf_spi_status_t vsf_spi_status_t
@ SPI_DATA_INPUT_DIRECTION
Definition spi.h:95
@ SPI_RECEIVE_ONLY_MODE_DISABLED
Definition spi.h:98
@ VSF_SPI_MODE_MASK
Definition spi.h:56
@ VSF_SPI_SLAVE_SELECTION_ACTIVE_LOW
Definition spi.h:109
@ SPI_AUTO_SLAVE_SELECTION_MSK
Definition spi.h:103
@ VSF_SPI_BIT_ORDER_MASK
Definition spi.h:60
@ VSF_SPI_LSB_FIRST
Definition spi.h:59
@ VSF_SPI_SLAVE_SELECTION_ACTIVE_HIGH
Definition spi.h:110
@ SPI_AUTO_SLAVE_SELECTION_DISABLE
Definition spi.h:105
@ SPI_DUPLEX_MASK
Definition spi.h:91
@ SPI_DATA_OUTPUT_DIRECTION
Definition spi.h:96
@ VSF_SPI_DIR_MODE_MASK
Definition spi.h:50
@ VSF_SPI_MSB_FIRST
Definition spi.h:58
@ SPI_RECEIVE_ONLY_MODE_ENABLED
Definition spi.h:99
@ SPI_FULL_DUPLEX
Definition spi.h:89
@ SPI_AUTO_SLAVE_SELECTION
Definition spi.h:102
@ SPI_AUTO_SLAVE_SELECTION_ENABLE
Definition spi.h:106
@ VSF_SPI_DATASIZE_MASK
Definition spi.h:87
@ SPI_HALF_DUPLEX
Definition spi.h:90
unsigned int uint32_t
Definition lvgl.h:43
Definition vsf_template_hal_driver.h:196
Definition vsf_template_spi.h:484
vk_av_control_value_t value
Definition vsf_audio.h:171
vsf_spi_irq_mask_t
Predefined VSF SPI interrupt that can be reimplemented in specific hal drivers.
Definition vsf_template_spi.h:454