2020-10-08 13:10:28 +00:00
|
|
|
|
|
|
|
set device AD469X
|
|
|
|
set mode 0
|
|
|
|
|
|
|
|
set hier_spi_engine spi_ad469x
|
|
|
|
|
2020-10-26 11:19:08 +00:00
|
|
|
# Mode DATA_WIDTH ASYNC_SPI_CLK NUM_CSN NUM_SDI SDI_DELAY
|
|
|
|
set params(AD469X,0) {32 1 1 1 1}
|
2020-10-08 13:10:28 +00:00
|
|
|
|
|
|
|
proc get_config_param {param} {
|
|
|
|
upvar device device
|
|
|
|
upvar mode mode
|
|
|
|
upvar params params
|
|
|
|
|
|
|
|
set spi_params {DATA_WIDTH ASYNC_SPI_CLK NUM_CS NUM_SDI SDI_DELAY}
|
|
|
|
set index [lsearch $spi_params $param]
|
|
|
|
|
|
|
|
return [lindex $params($device,$mode) $index]
|
|
|
|
}
|
2020-10-26 11:19:08 +00:00
|
|
|
|