9#ifndef HAL_SIO_V150_REGS_OP_H
10#define HAL_SIO_V150_REGS_OP_H
29#define sios_v150_regs(bus) ((sio_v150_regs_t *)g_hal_sio_regs[bus])
37static inline void hal_sio_v150_pos_merge_set_en(
sio_bus_t bus, uint32_t val)
69static inline uint32_t hal_sio_v150_version_get_loop(
sio_bus_t bus)
73 return version.
b.
loop;
81static inline void hal_sio_v150_version_set_loop(
sio_bus_t bus, uint32_t val)
93static inline uint32_t hal_sio_v150_mode_get_mode(
sio_bus_t bus)
105static inline void hal_sio_v150_mode_set_mode(
sio_bus_t bus, uint32_t val)
118static inline uint32_t hal_sio_v150_mode_get_pcm_mode(
sio_bus_t bus)
130static inline void hal_sio_v150_mode_set_pcm_mode(
sio_bus_t bus, uint32_t val)
143static inline uint32_t hal_sio_v150_mode_get_ext_rec_en(
sio_bus_t bus)
155static inline void hal_sio_v150_mode_set_ext_rec_en(
sio_bus_t bus, uint32_t val)
168static inline uint32_t hal_sio_v150_mode_get_chn_num(
sio_bus_t bus)
180static inline void hal_sio_v150_mode_set_chn_num(
sio_bus_t bus, uint32_t val)
193static inline uint32_t hal_sio_v150_mode_get_clk_edge(
sio_bus_t bus)
205static inline void hal_sio_v150_mode_set_clk_edge(
sio_bus_t bus, uint32_t val)
218static inline uint32_t hal_sio_v150_intstatus_get_rx_intr(
sio_bus_t bus)
230static inline uint32_t hal_sio_v150_intstatus_get_tx_intr(
sio_bus_t bus)
242static inline uint32_t hal_sio_v150_intstatus_get_rx_right_fifo_over(
sio_bus_t bus)
254static inline uint32_t hal_sio_v150_intstatus_get_rx_left_fifo_over(
sio_bus_t bus)
266static inline uint32_t hal_sio_v150_intstatus_get_tx_right_fifo_under(
sio_bus_t bus)
278static inline uint32_t hal_sio_v150_intstatus_get_tx_left_fifo_under(
sio_bus_t bus)
290static inline void hal_sio_v150_intclr_set_rx_intr(
sio_bus_t bus, uint32_t val)
303static inline void hal_sio_v150_intclr_set_tx_intr(
sio_bus_t bus, uint32_t val)
316static inline void hal_sio_v150_intclr_set_rx_right_fifo_over(
sio_bus_t bus, uint32_t val)
329static inline void hal_sio_v150_intclr_set_rx_left_fifo_over(
sio_bus_t bus, uint32_t val)
342static inline void hal_sio_v150_intclr_set_tx_right_fifo_under(
sio_bus_t bus, uint32_t val)
355static inline void hal_sio_v150_intclr_set_tx_left_fifo_under(
sio_bus_t bus, uint32_t val)
368static inline void hal_sio_v150_left_tx_set_data(
sio_bus_t bus, uint32_t val)
372 left_tx.
b.
data = val;
381static inline void hal_sio_v150_right_tx_set_data(
sio_bus_t bus, uint32_t val)
385 right_tx.
b.
data = val;
394static inline uint32_t hal_sio_v150_left_rx_get_data(
sio_bus_t bus)
398 return left_rx.
b.
data;
406static inline uint32_t hal_sio_v150_right_rx_get_data(
sio_bus_t bus)
410 return right_rx.
b.
data;
418static inline uint32_t hal_sio_v150_ct_set_get_tx_fifo_threshold(
sio_bus_t bus)
430static inline void hal_sio_v150_ct_set_set_tx_fifo_threshold(
sio_bus_t bus, uint32_t val)
443static inline uint32_t hal_sio_v150_ct_set_get_rx_fifo_threshold(
sio_bus_t bus)
455static inline void hal_sio_v150_ct_set_set_rx_fifo_threshold(
sio_bus_t bus, uint32_t val)
468static inline uint32_t hal_sio_v150_ct_set_get_tx_data_merge_en(
sio_bus_t bus)
480static inline void hal_sio_v150_ct_set_set_tx_data_merge_en(
sio_bus_t bus, uint32_t val)
493static inline uint32_t hal_sio_v150_ct_set_get_rx_data_merge_en(
sio_bus_t bus)
505static inline void hal_sio_v150_ct_set_set_rx_data_merge_en(
sio_bus_t bus, uint32_t val)
518static inline uint32_t hal_sio_v150_ct_set_get_tx_fifo_disable(
sio_bus_t bus)
530static inline void hal_sio_v150_ct_set_set_tx_fifo_disable(
sio_bus_t bus, uint32_t val)
543static inline uint32_t hal_sio_v150_ct_set_get_rx_fifo_disable(
sio_bus_t bus)
555static inline void hal_sio_v150_ct_set_set_rx_fifo_disable(
sio_bus_t bus, uint32_t val)
568static inline uint32_t hal_sio_v150_ct_set_get_tx_enable(
sio_bus_t bus)
580static inline uint32_t hal_sio_v150_ct_set_get_rx_enable(
sio_bus_t bus)
592static inline uint32_t hal_sio_v150_ct_set_get_intr_en(
sio_bus_t bus)
604static inline void hal_sio_v150_ct_set_set_intr_en(
sio_bus_t bus, uint32_t val)
617static inline uint32_t hal_sio_v150_ct_set_get_rst_n(
sio_bus_t bus)
629static inline void hal_sio_v150_ct_set_set_rst_n(
sio_bus_t bus, uint32_t val)
642static inline uint32_t hal_sio_v150_rx_sta_get_rx_right_depth(
sio_bus_t bus)
654static inline uint32_t hal_sio_v150_rx_sta_get_rx_left_depth(
sio_bus_t bus)
666static inline uint32_t hal_sio_v150_tx_sta_get_tx_right_depth(
sio_bus_t bus)
678static inline uint32_t hal_sio_v150_tx_sta_get_tx_left_depth(
sio_bus_t bus)
690static inline uint32_t hal_sio_v150_data_width_set_get_tx(
sio_bus_t bus)
694 return data_width_set.
b.
tx;
702static inline void hal_sio_v150_data_width_set_set_tx(
sio_bus_t bus, uint32_t val)
706 data_width_set.
b.
tx = val;
715static inline uint32_t hal_sio_v150_data_width_set_get_rx(
sio_bus_t bus)
719 return data_width_set.
b.
rx;
727static inline void hal_sio_v150_data_width_set_set_rx(
sio_bus_t bus, uint32_t val)
731 data_width_set.
b.
rx = val;
740static inline uint32_t hal_sio_v150_start_pos_get_start_pos_write(
sio_bus_t bus)
752static inline void hal_sio_v150_start_pos_set_start_pos_write(
sio_bus_t bus, uint32_t val)
765static inline uint32_t hal_sio_v150_start_pos_get_start_pos_read(
sio_bus_t bus)
777static inline void hal_sio_v150_start_pos_set_start_pos_read(
sio_bus_t bus, uint32_t val)
790static inline uint32_t hal_sio_v150_pos_flag_get_start_pos_write(
sio_bus_t bus)
802static inline void hal_sio_v150_pos_flag_set_start_pos_write(
sio_bus_t bus, uint32_t val)
815static inline uint32_t hal_sio_v150_pos_flag_get_start_pos_read(
sio_bus_t bus)
827static inline void hal_sio_v150_pos_flag_set_start_pos_read(
sio_bus_t bus, uint32_t val)
840static inline uint32_t hal_sio_v150_ct_clr_get_tx_fifo_disable(
sio_bus_t bus)
852static inline void hal_sio_v150_ct_clr_set_tx_fifo_disable(
sio_bus_t bus, uint32_t val)
865static inline uint32_t hal_sio_v150_ct_clr_get_rx_fifo_disable(
sio_bus_t bus)
877static inline void hal_sio_v150_ct_clr_set_rx_fifo_disable(
sio_bus_t bus, uint32_t val)
890static inline uint32_t hal_sio_v150_ct_clr_get_tx_enable(
sio_bus_t bus)
902static inline void hal_sio_v150_ct_clr_set_tx_enable(
sio_bus_t bus, uint32_t val)
915static inline uint32_t hal_sio_v150_ct_clr_get_rx_enable(
sio_bus_t bus)
927static inline void hal_sio_v150_ct_clr_set_rx_enable(
sio_bus_t bus, uint32_t val)
940static inline void hal_sio_v150_ct_clr_set_intr_en(
sio_bus_t bus, uint32_t val)
953static inline uint32_t hal_sio_v150_ct_clr_get_intr_en(
sio_bus_t bus)
965static inline void hal_sio_v150_ct_clr_set_rst_n(
sio_bus_t bus, uint32_t val)
void hal_sio_v150_regs_deinit(sio_bus_t bus)
Deinit the hal_sio which will clear the base address of registers has been set by hal_sio_v150_regs_i...
void hal_sio_v150_ct_set_set_tx_enable(sio_bus_t bus, uint32_t val)
Set the value of sio_v150_ct_set_data::tx_enable.
Definition hal_sio_v150_regs_op.c:15
uintptr_t g_hal_sio_regs[I2S_MAX_NUMBER]
Definition hal_sio.c:12
#define sios_v150_regs(bus)
Definition hal_sio_v150_regs_op.h:29
void hal_sio_v150_regs_init(sio_bus_t bus)
Init the sio which will set the base address of registers.
void hal_sio_v150_ct_set_set_rx_enable(sio_bus_t bus, uint32_t val)
Set the value of sio_v150_ct_set_data::rx_enable.
Definition hal_sio_v150_regs_op.c:31
unsigned int uintptr_t
Definition td_type.h:65
This union represents the bit fields in the sio_ct_clr register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:197
uint32_t tx_enable
Definition hal_sio_v150_regs_def.h:214
uint32_t rx_enable
Definition hal_sio_v150_regs_def.h:217
uint32_t rst_n
Definition hal_sio_v150_regs_def.h:223
struct sio_v150_ct_clr_data::@274 b
uint32_t tx_fifo_disable
Definition hal_sio_v150_regs_def.h:208
uint32_t rx_fifo_disable
Definition hal_sio_v150_regs_def.h:211
uint32_t d32
Definition hal_sio_v150_regs_def.h:198
uint32_t intr_en
Definition hal_sio_v150_regs_def.h:220
This union represents the bit fields in the sio_ct_set register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:161
uint32_t tx_fifo_threshold
Definition hal_sio_v150_regs_def.h:164
uint32_t tx_enable
Definition hal_sio_v150_regs_def.h:178
uint32_t tx_data_merge_en
Definition hal_sio_v150_regs_def.h:166
uint32_t d32
Definition hal_sio_v150_regs_def.h:162
uint32_t rx_fifo_threshold
Definition hal_sio_v150_regs_def.h:165
uint32_t rx_fifo_disable
Definition hal_sio_v150_regs_def.h:175
uint32_t tx_fifo_disable
Definition hal_sio_v150_regs_def.h:172
uint32_t rst_n
Definition hal_sio_v150_regs_def.h:187
struct sio_v150_ct_set_data::@273 b
uint32_t intr_en
Definition hal_sio_v150_regs_def.h:184
uint32_t rx_data_merge_en
Definition hal_sio_v150_regs_def.h:169
uint32_t rx_enable
Definition hal_sio_v150_regs_def.h:181
This union represents the bit fields in the sio_data_width_set register. Read the register into the d...
Definition hal_sio_v150_regs_def.h:261
uint32_t d32
Definition hal_sio_v150_regs_def.h:262
uint32_t tx
Definition hal_sio_v150_regs_def.h:264
struct sio_v150_data_width_set_data::@277 b
uint32_t rx
Definition hal_sio_v150_regs_def.h:265
This union represents the bit fields in the sio_pos_flag register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:293
struct sio_v150_i2s_pos_flag_data::@279 b
uint32_t start_pos_read
Definition hal_sio_v150_regs_def.h:296
uint32_t d32
Definition hal_sio_v150_regs_def.h:294
uint32_t start_pos_write
Definition hal_sio_v150_regs_def.h:299
This union represents the bit fields in the sio_i2s_pos_merge_en register. Read the register into the...
Definition hal_sio_v150_regs_def.h:324
struct sio_v150_i2s_pos_merge_en_data::@281 b
uint32_t merge_en
Definition hal_sio_v150_regs_def.h:327
uint32_t d32
Definition hal_sio_v150_regs_def.h:325
This union represents the bit fields in the sio_i2s_start_pos register. Read the register into the d3...
Definition hal_sio_v150_regs_def.h:275
uint32_t start_pos_write
Definition hal_sio_v150_regs_def.h:281
uint32_t d32
Definition hal_sio_v150_regs_def.h:276
uint32_t start_pos_read
Definition hal_sio_v150_regs_def.h:278
struct sio_v150_i2s_start_pos_data::@278 b
This union represents the bit fields in the sio_intclr register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:95
uint32_t rx_right_fifo_over
Definition hal_sio_v150_regs_def.h:100
struct sio_v150_intclr_data::@268 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:96
uint32_t rx_left_fifo_over
Definition hal_sio_v150_regs_def.h:101
uint32_t tx_right_fifo_under
Definition hal_sio_v150_regs_def.h:102
uint32_t tx_left_fifo_under
Definition hal_sio_v150_regs_def.h:103
uint32_t rx_intr
Definition hal_sio_v150_regs_def.h:98
uint32_t tx_intr
Definition hal_sio_v150_regs_def.h:99
This union represents the bit fields in the sio_intstatus register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:77
uint32_t tx_right_fifo_under
Definition hal_sio_v150_regs_def.h:84
uint32_t tx_intr
Definition hal_sio_v150_regs_def.h:81
uint32_t tx_left_fifo_under
Definition hal_sio_v150_regs_def.h:85
uint32_t rx_intr
Definition hal_sio_v150_regs_def.h:80
uint32_t rx_left_fifo_over
Definition hal_sio_v150_regs_def.h:83
uint32_t rx_right_fifo_over
Definition hal_sio_v150_regs_def.h:82
struct sio_v150_intstatus_data::@267 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:78
This union represents the bit fields in the left_rx_data register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:137
struct sio_v150_left_rx_data::@271 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:138
uint32_t data
Definition hal_sio_v150_regs_def.h:140
This union represents the bit fields in the left_tx_data register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:113
uint32_t data
Definition hal_sio_v150_regs_def.h:116
struct sio_v150_left_tx_data::@269 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:114
This union represents the bit fields in the sio_mode register. Read the register into the d32 member ...
Definition hal_sio_v150_regs_def.h:47
uint32_t d32
Definition hal_sio_v150_regs_def.h:48
uint32_t clk_edge
Definition hal_sio_v150_regs_def.h:65
uint32_t chn_num
Definition hal_sio_v150_regs_def.h:60
uint32_t mode
Definition hal_sio_v150_regs_def.h:50
uint32_t ext_rec_en
Definition hal_sio_v150_regs_def.h:57
uint32_t pcm_mode
Definition hal_sio_v150_regs_def.h:53
struct sio_v150_mode_data::@266 b
This union represents the bit fields in the right_rx_data register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:149
uint32_t data
Definition hal_sio_v150_regs_def.h:152
struct sio_v150_right_rx_data::@272 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:150
This union represents the bit fields in the right_tx_data register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:125
uint32_t d32
Definition hal_sio_v150_regs_def.h:126
struct sio_v150_right_tx_data::@270 b
uint32_t data
Definition hal_sio_v150_regs_def.h:128
This union represents the bit fields in the sio_rx_sta register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:233
uint32_t rx_right_depth
Definition hal_sio_v150_regs_def.h:236
struct sio_v150_rx_sta_data::@275 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:234
uint32_t rx_left_depth
Definition hal_sio_v150_regs_def.h:237
This union represents the bit fields in the sio_tx_sta register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:247
uint32_t tx_left_depth
Definition hal_sio_v150_regs_def.h:251
struct sio_v150_tx_sta_data::@276 b
uint32_t tx_right_depth
Definition hal_sio_v150_regs_def.h:250
uint32_t d32
Definition hal_sio_v150_regs_def.h:248
This union represents the bit fields in the sio_version register. Read the register into the d32 memb...
Definition hal_sio_v150_regs_def.h:31
uint32_t d32
Definition hal_sio_v150_regs_def.h:32
struct sio_v150_version_data::@265 b
uint32_t loop
Definition hal_sio_v150_regs_def.h:35