9#ifndef HAL_SIO_V151_REGS_OP_H
10#define HAL_SIO_V151_REGS_OP_H
28#define sios_v151_regs(bus) ((sio_v151_regs_t *)g_hal_sio_regs[bus])
45static inline uint32_t hal_sio_v151_version_get_loop(
sio_bus_t bus)
49 return version.
b.
loop;
57static inline void hal_sio_v151_version_set_loop(
sio_bus_t bus, uint32_t val)
70static inline uint32_t hal_sio_v151_mode_get_mode(
sio_bus_t bus)
82static inline void hal_sio_v151_mode_set_mode(
sio_bus_t bus, uint32_t val)
95static inline uint32_t hal_sio_v151_mode_get_pcm_mode(
sio_bus_t bus)
107static inline void hal_sio_v151_mode_set_pcm_mode(
sio_bus_t bus, uint32_t val)
120static inline uint32_t hal_sio_v151_mode_get_rxws_select(
sio_bus_t bus)
132static inline uint32_t hal_sio_v151_mode_get_ext_rec_en(
sio_bus_t bus)
144static inline void hal_sio_v151_mode_set_ext_rec_en(
sio_bus_t bus, uint32_t val)
157static inline uint32_t hal_sio_v151_mode_get_chn_num(
sio_bus_t bus)
169static inline void hal_sio_v151_mode_set_chn_num(
sio_bus_t bus, uint32_t val)
182static inline uint32_t hal_sio_v151_mode_get_clk_edge(
sio_bus_t bus)
194static inline void hal_sio_v151_mode_set_clk_edge(
sio_bus_t bus, uint32_t val)
207static inline uint32_t hal_sio_v151_mode_get_cfg_i2s_ms_mode_sel(
sio_bus_t bus)
219static inline void hal_sio_v151_mode_set_cfg_i2s_ms_mode_sel(
sio_bus_t bus, uint32_t val)
232static inline uint32_t hal_sio_v151_intstatus_get_rx_intr(
sio_bus_t bus)
244static inline uint32_t hal_sio_v151_intstatus_get_tx_intr(
sio_bus_t bus)
256static inline uint32_t hal_sio_v151_intstatus_get_rx_right_fifo_over(
sio_bus_t bus)
268static inline uint32_t hal_sio_v151_intstatus_get_rx_left_fifo_over(
sio_bus_t bus)
280static inline uint32_t hal_sio_v151_intstatus_get_tx_right_fifo_under(
sio_bus_t bus)
292static inline uint32_t hal_sio_v151_intstatus_get_tx_left_fifo_under(
sio_bus_t bus)
304static inline void hal_sio_v151_intclr_set_rx_intr(
sio_bus_t bus, uint32_t val)
317static inline void hal_sio_v151_intclr_set_tx_intr(
sio_bus_t bus, uint32_t val)
330static inline void hal_sio_v151_intclr_set_rx_right_fifo_over(
sio_bus_t bus, uint32_t val)
343static inline void hal_sio_v151_intclr_set_rx_left_fifo_over(
sio_bus_t bus, uint32_t val)
356static inline void hal_sio_v151_intclr_set_tx_right_fifo_under(
sio_bus_t bus, uint32_t val)
369static inline void hal_sio_v151_intclr_set_tx_left_fifo_under(
sio_bus_t bus, uint32_t val)
382static inline void hal_sio_v151_i2s_left_xd_set_tx_left_data(
sio_bus_t bus, uint32_t val)
395static inline void hal_sio_v151_i2s_right_xd_set_tx_right_data(
sio_bus_t bus, uint32_t val)
408static inline uint32_t hal_sio_v151_i2s_left_rd_get_rx_left_data(
sio_bus_t bus)
420static inline uint32_t hal_sio_v151_i2s_right_rd_get_rx_right_data(
sio_bus_t bus)
432static inline uint32_t hal_sio_v151_ct_set_get_tx_data_merge_en(
sio_bus_t bus)
444static inline void hal_sio_v151_ct_set_set_tx_data_merge_en(
sio_bus_t bus, uint32_t val)
457static inline uint32_t hal_sio_v151_ct_set_get_rx_data_merge_en(
sio_bus_t bus)
469static inline void hal_sio_v151_ct_set_set_rx_data_merge_en(
sio_bus_t bus, uint32_t val)
482static inline uint32_t hal_sio_v151_ct_set_get_tx_fifo_disable(
sio_bus_t bus)
494static inline void hal_sio_v151_ct_set_set_tx_fifo_disable(
sio_bus_t bus, uint32_t val)
507static inline uint32_t hal_sio_v151_ct_set_get_rx_fifo_disable(
sio_bus_t bus)
519static inline void hal_sio_v151_ct_set_set_rx_fifo_disable(
sio_bus_t bus, uint32_t val)
532static inline uint32_t hal_sio_v151_ct_set_get_tx_enable(
sio_bus_t bus)
544static inline void hal_sio_v151_ct_set_set_tx_enable(
sio_bus_t bus, uint32_t val)
557static inline uint32_t hal_sio_v151_ct_set_get_rx_enable(
sio_bus_t bus)
569static inline void hal_sio_v151_ct_set_set_rx_enable(
sio_bus_t bus, uint32_t val)
582static inline uint32_t hal_sio_v151_ct_set_get_intr_en(
sio_bus_t bus)
594static inline void hal_sio_v151_ct_set_set_intr_en(
sio_bus_t bus, uint32_t val)
607static inline uint32_t hal_sio_v151_ct_set_get_rst_n(
sio_bus_t bus)
619static inline void hal_sio_v151_ct_set_set_rst_n(
sio_bus_t bus, uint32_t val)
632static inline void hal_sio_v151_ct_clr_set_tx_data_merge_en(
sio_bus_t bus, uint32_t val)
645static inline uint32_t hal_sio_v151_ct_clr_get_rx_data_merge_en(
sio_bus_t bus)
657static inline void hal_sio_v151_ct_clr_set_rx_data_merge_en(
sio_bus_t bus, uint32_t val)
670static inline uint32_t hal_sio_v151_ct_clr_get_tx_fifo_disable(
sio_bus_t bus)
682static inline void hal_sio_v151_ct_clr_set_tx_fifo_disable(
sio_bus_t bus, uint32_t val)
695static inline uint32_t hal_sio_v151_ct_clr_get_rx_fifo_disable(
sio_bus_t bus)
707static inline void hal_sio_v151_ct_clr_set_rx_fifo_disable(
sio_bus_t bus, uint32_t val)
720static inline uint32_t hal_sio_v151_ct_clr_get_tx_enable(
sio_bus_t bus)
732static inline void hal_sio_v151_ct_clr_set_tx_enable(
sio_bus_t bus, uint32_t val)
745static inline uint32_t hal_sio_v151_ct_clr_get_rx_enable(
sio_bus_t bus)
757static inline void hal_sio_v151_ct_clr_set_rx_enable(
sio_bus_t bus, uint32_t val)
770static inline void hal_sio_v151_ct_clr_set_intr_en(
sio_bus_t bus, uint32_t val)
783static inline uint32_t hal_sio_v151_ct_clr_get_intr_en(
sio_bus_t bus)
795static inline void hal_sio_v151_ct_clr_set_rst_n(
sio_bus_t bus, uint32_t val)
808static inline uint32_t hal_sio_v151_fifo_threshold_get_rx_fifo_threshold(
sio_bus_t bus)
820static inline void hal_sio_v151_fifo_threshold_set_rx_fifo_threshold(
sio_bus_t bus, uint32_t val)
833static inline uint32_t hal_sio_v151_fifo_threshold_get_tx_fifo_threshold(
sio_bus_t bus)
845static inline void hal_sio_v151_fifo_threshold_set_tx_fifo_threshold(
sio_bus_t bus, uint32_t val)
858static inline uint32_t hal_sio_v151_rx_sta_get_rx_left_depth(
sio_bus_t bus)
870static inline uint32_t hal_sio_v151_rx_sta_get_rx_right_depth(
sio_bus_t bus)
882static inline uint32_t hal_sio_v151_tx_sta_get_tx_left_depth(
sio_bus_t bus)
894static inline void hal_sio_v151_tx_sta_set_tx_left_depth(
sio_bus_t bus, uint32_t val)
907static inline uint32_t hal_sio_v151_tx_sta_get_tx_right_depth(
sio_bus_t bus)
919static inline void hal_sio_v151_tx_sta_set_tx_right_depth(
sio_bus_t bus, uint32_t val)
932static inline uint32_t hal_sio_v151_data_width_get_tx_mode(
sio_bus_t bus)
944static inline void hal_sio_v151_data_width_set_tx_mode(
sio_bus_t bus, uint32_t val)
957static inline uint32_t hal_sio_v151_data_width_get_rx_mode(
sio_bus_t bus)
969static inline void hal_sio_v151_data_width_set_rx_mode(
sio_bus_t bus, uint32_t val)
982static inline uint32_t hal_sio_v151_start_pos_get_read(
sio_bus_t bus)
994static inline void hal_sio_v151_start_pos_set_read(
sio_bus_t bus, uint32_t val)
1007static inline uint32_t hal_sio_v151_start_pos_get_write(
sio_bus_t bus)
1019static inline void hal_sio_v151_start_pos_set_write(
sio_bus_t bus, uint32_t val)
1032static inline uint32_t hal_sio_v151_pos_flag_get_read(
sio_bus_t bus)
1044static inline void hal_sio_v151_pos_flag_set_read(
sio_bus_t bus, uint32_t val)
1057static inline uint32_t hal_sio_v151_pos_flag_get_write(
sio_bus_t bus)
1069static inline void hal_sio_v151_pos_flag_set_write(
sio_bus_t bus, uint32_t val)
1082static inline uint32_t hal_sio_v151_signed_ext_get_en(
sio_bus_t bus)
1094static inline void hal_sio_v151_signed_ext_set_en(
sio_bus_t bus, uint32_t val)
1107static inline uint32_t hal_sio_v151_pos_merge_get_en(
sio_bus_t bus)
1119static inline void hal_sio_v151_pos_merge_set_en(
sio_bus_t bus, uint32_t val)
1132static inline uint32_t hal_sio_v151_i2s_crg_get_bclk_div_en(
sio_bus_t bus)
1144static inline void hal_sio_v151_i2s_crg_set_bclk_div_en(
sio_bus_t bus, uint32_t val)
1157static inline uint32_t hal_sio_v151_i2s_crg_get_crg_clken(
sio_bus_t bus)
1169static inline void hal_sio_v151_i2s_crg_set_crg_clken(
sio_bus_t bus, uint32_t val)
1182static inline uint32_t hal_sio_v151_i2s_crg_get_bclk_sel(
sio_bus_t bus)
1194static inline void hal_sio_v151_i2s_crg_set_bclk_sel(
sio_bus_t bus, uint32_t val)
1207static inline uint32_t hal_sio_v151_i2s_crg_get_fs_sel(
sio_bus_t bus)
1219static inline void hal_sio_v151_i2s_crg_set_fs_sel(
sio_bus_t bus, uint32_t val)
1232static inline uint32_t hal_sio_v151_bclk_div_num_get_num(
sio_bus_t bus)
1244static inline void hal_sio_v151_bclk_div_num_set_num(
sio_bus_t bus, uint32_t val)
1257static inline uint32_t hal_sio_v151_fs_div_num_get_num(
sio_bus_t bus)
1269static inline void hal_sio_v151_fs_div_num_set_num(
sio_bus_t bus, uint32_t val)
1282static inline uint32_t hal_sio_v151_fs_div_ratio_num_get_num(
sio_bus_t bus)
1294static inline void hal_sio_v151_fs_div_ratio_num_set_num(
sio_bus_t bus, uint32_t val)
1302static inline void hal_sio_fifo_threshold_set_tx_fifo_threshold(
sio_bus_t bus, uint32_t val)
1305 threshold = (threshold & 0xff00);
1306 threshold = (threshold | (val & 0xff));
1310#define SIO_RX_FIFO_SHIFT_MASK 8
1312static inline void hal_sio_fifo_threshold_set_rx_fifo_threshold(
sio_bus_t bus, uint32_t val)
1315 threshold = (threshold & 0xff);
1320static inline void hal_sio_set_intmask(
sio_bus_t bus, uint32_t mask)
1325static inline uint32_t hal_sio_get_merge_rx_data(
sio_bus_t bus)
void hal_sio_v151_regs_init(sio_bus_t bus)
Init the sio which will set the base address of registers.
#define sios_v151_regs(bus)
Definition hal_sio_v151_regs_op.h:28
uintptr_t g_hal_sio_regs[I2S_MAX_NUMBER]
Definition hal_sio.c:12
#define SIO_RX_FIFO_SHIFT_MASK
Definition hal_sio_v151_regs_op.h:1310
void hal_sio_v151_regs_deinit(sio_bus_t bus)
Deinit the sio which will clear the base address of registers.
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_v151_regs_def.h:197
uint32_t rx_enable
Definition hal_sio_v151_regs_def.h:217
struct sio_v151_ct_clr_data::@294 b
uint32_t tx_enable
Definition hal_sio_v151_regs_def.h:214
uint32_t rx_data_merge_en
Definition hal_sio_v151_regs_def.h:205
uint32_t intr_en
Definition hal_sio_v151_regs_def.h:220
uint32_t tx_data_merge_en
Definition hal_sio_v151_regs_def.h:202
uint32_t tx_fifo_disable
Definition hal_sio_v151_regs_def.h:208
uint32_t d32
Definition hal_sio_v151_regs_def.h:198
uint32_t rst_n
Definition hal_sio_v151_regs_def.h:223
uint32_t rx_fifo_disable
Definition hal_sio_v151_regs_def.h:211
This union represents the bit fields in the sio_ct_set register. Read the register into the d32 membe...
Definition hal_sio_v151_regs_def.h:161
uint32_t intr_en
Definition hal_sio_v151_regs_def.h:184
uint32_t tx_enable
Definition hal_sio_v151_regs_def.h:178
uint32_t d32
Definition hal_sio_v151_regs_def.h:162
uint32_t rx_fifo_disable
Definition hal_sio_v151_regs_def.h:175
uint32_t tx_data_merge_en
Definition hal_sio_v151_regs_def.h:166
uint32_t tx_fifo_disable
Definition hal_sio_v151_regs_def.h:172
uint32_t rst_n
Definition hal_sio_v151_regs_def.h:187
uint32_t rx_data_merge_en
Definition hal_sio_v151_regs_def.h:169
struct sio_v151_ct_set_data::@293 b
uint32_t rx_enable
Definition hal_sio_v151_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_v151_regs_def.h:275
uint32_t rx_mode
Definition hal_sio_v151_regs_def.h:279
uint32_t d32
Definition hal_sio_v151_regs_def.h:276
uint32_t tx_mode
Definition hal_sio_v151_regs_def.h:278
struct sio_v151_data_width_set_data::@298 b
This union represents the bit fields in the sio_fifo_threshold register. Read the register into the d...
Definition hal_sio_v151_regs_def.h:233
uint32_t rx_fifo_threshold
Definition hal_sio_v151_regs_def.h:237
uint32_t d32
Definition hal_sio_v151_regs_def.h:234
uint32_t tx_fifo_threshold
Definition hal_sio_v151_regs_def.h:236
struct sio_v151_fifo_threshold_data::@295 b
This union represents the bit fields in the cfg_i2s_bclk_div_num register. Read the register into the...
Definition hal_sio_v151_regs_def.h:402
uint32_t bclk_div_num
Definition hal_sio_v151_regs_def.h:405
uint32_t d32
Definition hal_sio_v151_regs_def.h:403
struct sio_v151_i2s_bclk_div_num_data::@305 b
This union represents the bit fields in the cfg_i2s_crg register. Read the register into the d32 memb...
Definition hal_sio_v151_regs_def.h:385
struct sio_v151_i2s_crg_data::@304 b
uint32_t i2s_bclk_div_en
Definition hal_sio_v151_regs_def.h:388
uint32_t i2s_bclk_sel
Definition hal_sio_v151_regs_def.h:390
uint32_t d32
Definition hal_sio_v151_regs_def.h:386
uint32_t i2s_crg_clken
Definition hal_sio_v151_regs_def.h:389
uint32_t i2s_fs_sel
Definition hal_sio_v151_regs_def.h:392
This union represents the bit fields in the cfg_i2s_fs_div_num register. Read the register into the d...
Definition hal_sio_v151_regs_def.h:415
uint32_t d32
Definition hal_sio_v151_regs_def.h:416
uint32_t fs_div_num
Definition hal_sio_v151_regs_def.h:418
struct sio_v151_i2s_fs_div_num_data::@306 b
This union represents the bit fields in the cfg_i2s_fs_div_num register. Read the register into the d...
Definition hal_sio_v151_regs_def.h:428
uint32_t fs_div_ratio_num
Definition hal_sio_v151_regs_def.h:431
struct sio_v151_i2s_fs_div_ratio_num_data::@307 b
uint32_t d32
Definition hal_sio_v151_regs_def.h:429
This union represents the bit fields in the sio_i2s_left_rd register. Read the register into the d32 ...
Definition hal_sio_v151_regs_def.h:138
uint32_t d32
Definition hal_sio_v151_regs_def.h:139
struct sio_v151_i2s_left_rd_data::@291 b
uint32_t rx_left_data
Definition hal_sio_v151_regs_def.h:141
This union represents the bit fields in the sio_i2s_left_xd register. Read the register into the d32 ...
Definition hal_sio_v151_regs_def.h:114
uint32_t d32
Definition hal_sio_v151_regs_def.h:115
struct sio_v151_i2s_left_xd_data::@289 b
uint32_t tx_left_data
Definition hal_sio_v151_regs_def.h:117
This union represents the bit fields in the sio_i2s_pos_merge_en register. Read the register into the...
Definition hal_sio_v151_regs_def.h:340
uint32_t d32
Definition hal_sio_v151_regs_def.h:341
uint32_t merge_en
Definition hal_sio_v151_regs_def.h:343
struct sio_v151_i2s_pos_merge_en_data::@302 b
This union represents the bit fields in the sio_i2s_right_xd register. Read the register into the d32...
Definition hal_sio_v151_regs_def.h:150
uint32_t d32
Definition hal_sio_v151_regs_def.h:151
struct sio_v151_i2s_right_rd_data::@292 b
uint32_t rx_right_data
Definition hal_sio_v151_regs_def.h:153
This union represents the bit fields in the sio_i2s_right_xd register. Read the register into the d32...
Definition hal_sio_v151_regs_def.h:126
struct sio_v151_i2s_right_xd_data::@290 b
uint32_t tx_right_data
Definition hal_sio_v151_regs_def.h:129
uint32_t d32
Definition hal_sio_v151_regs_def.h:127
This union represents the bit fields in the sio_i2s_start_pos register. Read the register into the d3...
Definition hal_sio_v151_regs_def.h:289
uint32_t d32
Definition hal_sio_v151_regs_def.h:290
uint32_t start_post_read
Definition hal_sio_v151_regs_def.h:292
uint32_t start_pos_write
Definition hal_sio_v151_regs_def.h:295
struct sio_v151_i2s_start_pos_data::@299 b
This union represents the bit fields in the sio_intclr register. Read the register into the d32 membe...
Definition hal_sio_v151_regs_def.h:96
uint32_t tx_intr
Definition hal_sio_v151_regs_def.h:100
uint32_t rx_intr
Definition hal_sio_v151_regs_def.h:99
uint32_t d32
Definition hal_sio_v151_regs_def.h:97
uint32_t rx_right_fifo_over
Definition hal_sio_v151_regs_def.h:101
uint32_t tx_left_fifo_under
Definition hal_sio_v151_regs_def.h:104
uint32_t tx_right_fifo_under
Definition hal_sio_v151_regs_def.h:103
struct sio_v151_intclr_data::@288 b
uint32_t rx_left_fifo_over
Definition hal_sio_v151_regs_def.h:102
This union represents the bit fields in the sio_intstatus register. Read the register into the d32 me...
Definition hal_sio_v151_regs_def.h:78
uint32_t rx_left_fifo_over
Definition hal_sio_v151_regs_def.h:84
uint32_t tx_intr
Definition hal_sio_v151_regs_def.h:82
uint32_t rx_intr
Definition hal_sio_v151_regs_def.h:81
uint32_t d32
Definition hal_sio_v151_regs_def.h:79
uint32_t tx_left_fifo_under
Definition hal_sio_v151_regs_def.h:86
struct sio_v151_intstatus_data::@287 b
uint32_t tx_right_fifo_under
Definition hal_sio_v151_regs_def.h:85
uint32_t rx_right_fifo_over
Definition hal_sio_v151_regs_def.h:83
This union represents the bit fields in the sio_mode register. Read the register into the d32 member ...
Definition hal_sio_v151_regs_def.h:47
uint32_t cfg_i2s_ms_mode_sel
Definition hal_sio_v151_regs_def.h:68
uint32_t mode
Definition hal_sio_v151_regs_def.h:50
uint32_t clk_edge
Definition hal_sio_v151_regs_def.h:65
struct sio_v151_mode_data::@286 b
uint32_t pcm_mode
Definition hal_sio_v151_regs_def.h:53
uint32_t d32
Definition hal_sio_v151_regs_def.h:48
uint32_t chn_num
Definition hal_sio_v151_regs_def.h:60
uint32_t rxws_select
Definition hal_sio_v151_regs_def.h:56
uint32_t ext_rec_en
Definition hal_sio_v151_regs_def.h:57
This union represents the bit fields in the sio_pos_flag register. Read the register into the d32 mem...
Definition hal_sio_v151_regs_def.h:307
uint32_t d32
Definition hal_sio_v151_regs_def.h:308
struct sio_v151_pos_flag_data::@300 b
uint32_t start_post_read
Definition hal_sio_v151_regs_def.h:310
uint32_t start_pos_write
Definition hal_sio_v151_regs_def.h:313
This union represents the bit fields in the sio_rx_sta register. Read the register into the d32 membe...
Definition hal_sio_v151_regs_def.h:247
uint32_t rx_left_depth
Definition hal_sio_v151_regs_def.h:250
uint32_t rx_right_depth
Definition hal_sio_v151_regs_def.h:251
struct sio_v151_rx_sta_data::@296 b
uint32_t d32
Definition hal_sio_v151_regs_def.h:248
This union represents the bit fields in the sio_signed_ext register. Read the register into the d32 m...
Definition hal_sio_v151_regs_def.h:325
struct sio_v151_signed_ext_data::@301 b
uint32_t d32
Definition hal_sio_v151_regs_def.h:326
uint32_t signed_ext_en
Definition hal_sio_v151_regs_def.h:328
This union represents the bit fields in the sio_tx_sta register. Read the register into the d32 membe...
Definition hal_sio_v151_regs_def.h:261
uint32_t d32
Definition hal_sio_v151_regs_def.h:262
uint32_t tx_left_depth
Definition hal_sio_v151_regs_def.h:264
uint32_t tx_right_depth
Definition hal_sio_v151_regs_def.h:265
struct sio_v151_tx_sta_data::@297 b
This union represents the bit fields in the sio_version register. Read the register into the d32 memb...
Definition hal_sio_v151_regs_def.h:31
uint32_t d32
Definition hal_sio_v151_regs_def.h:32
struct sio_v151_version_data::@285 b
uint32_t loop
Definition hal_sio_v151_regs_def.h:35