Loading...
Searching...
No Matches
st25r3916.h
1#pragma once
2
3#include "st25r3916_reg.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#define ST25R3916_IRQ_MASK_ALL (uint32_t)(0xFFFFFFFFUL)
10#define ST25R3916_IRQ_MASK_NONE (uint32_t)(0x00000000UL)
13#define ST25R3916_IRQ_MASK_OSC (uint32_t)(0x00000080U)
14#define ST25R3916_IRQ_MASK_FWL (uint32_t)(0x00000040U)
15#define ST25R3916_IRQ_MASK_RXS (uint32_t)(0x00000020U)
16#define ST25R3916_IRQ_MASK_RXE (uint32_t)(0x00000010U)
17#define ST25R3916_IRQ_MASK_TXE \
18 (uint32_t)(0x00000008U)
19#define ST25R3916_IRQ_MASK_COL (uint32_t)(0x00000004U)
20#define ST25R3916_IRQ_MASK_RX_REST \
21 (uint32_t)(0x00000002U)
22#define ST25R3916_IRQ_MASK_RFU (uint32_t)(0x00000001U)
25#define ST25R3916_IRQ_MASK_DCT \
26 (uint32_t)(0x00008000U)
27#define ST25R3916_IRQ_MASK_NRE \
28 (uint32_t)(0x00004000U)
29#define ST25R3916_IRQ_MASK_GPE \
30 (uint32_t)(0x00002000U)
31#define ST25R3916_IRQ_MASK_EON (uint32_t)(0x00001000U)
32#define ST25R3916_IRQ_MASK_EOF \
33 (uint32_t)(0x00000800U)
34#define ST25R3916_IRQ_MASK_CAC \
35 (uint32_t)(0x00000400U)
36#define ST25R3916_IRQ_MASK_CAT \
37 (uint32_t)(0x00000200U)
38#define ST25R3916_IRQ_MASK_NFCT \
39 (uint32_t)(0x00000100U)
42#define ST25R3916_IRQ_MASK_CRC (uint32_t)(0x00800000U)
43#define ST25R3916_IRQ_MASK_PAR (uint32_t)(0x00400000U)
44#define ST25R3916_IRQ_MASK_ERR2 \
45 (uint32_t)(0x00200000U)
46#define ST25R3916_IRQ_MASK_ERR1 \
47 (uint32_t)(0x00100000U)
48#define ST25R3916_IRQ_MASK_WT (uint32_t)(0x00080000U)
49#define ST25R3916_IRQ_MASK_WAM \
50 (uint32_t)(0x00040000U)
51#define ST25R3916_IRQ_MASK_WPH \
52 (uint32_t)(0x00020000U)
53#define ST25R3916_IRQ_MASK_WCAP \
54 (uint32_t)(0x00010000U)
57#define ST25R3916_IRQ_MASK_PPON2 \
58 (uint32_t)(0x80000000U)
59#define ST25R3916_IRQ_MASK_SL_WL \
60 (uint32_t)(0x40000000U)
61#define ST25R3916_IRQ_MASK_APON \
62 (uint32_t)(0x20000000U)
63#define ST25R3916_IRQ_MASK_RXE_PTA \
64 (uint32_t)(0x10000000U)
65#define ST25R3916_IRQ_MASK_WU_F \
66 (uint32_t)(0x08000000U)
67#define ST25R3916_IRQ_MASK_RFU2 (uint32_t)(0x04000000U)
68#define ST25R3916_IRQ_MASK_WU_A_X \
69 (uint32_t)(0x02000000U)
70#define ST25R3916_IRQ_MASK_WU_A \
71 (uint32_t)(0x01000000U)
78void st25r3916_mask_irq(FuriHalSpiBusHandle* handle, uint32_t mask);
79
86uint32_t st25r3916_get_irq(FuriHalSpiBusHandle* handle);
87
94void st25r3916_write_fifo(FuriHalSpiBusHandle* handle, const uint8_t* buff, size_t bits);
95
105bool st25r3916_read_fifo(
106 FuriHalSpiBusHandle* handle,
107 uint8_t* buff,
108 size_t buff_size,
109 size_t* buff_bits);
110
111#ifdef __cplusplus
112}
113#endif
FuriHal spi handle.
Definition furi_hal_spi_types.h:51