no-OS
no_os_platform.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef NO_OS_PLATFORM_H_
40 #define NO_OS_PLATFORM_H_
41 
46 };
47 
48 #endif
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
TxAttenTable
struct TxAttenTableEntry TxAttenTable[]
Definition: TxAttenTable.h:50
GPIO_SSI_SYNC
#define GPIO_SSI_SYNC
Definition: parameters.h:71
TxAttenTableEntry::txAttenHp
uint8_t txAttenHp
Definition: TxAttenTable.h:46
TxAttenTableEntry::attenIndex
uint16_t attenIndex
Definition: TxAttenTable.h:45
no_os_spi_write_and_read
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:82
no_os_spi.h
Header file of SPI Interface.
adi_common_hal_Wait_us
int32_t(* adi_common_hal_Wait_us)(void *devHalCfg, uint32_t time_us)
Definition: no_os_platform.c:519
adi_hal_StreamImagePageGet
int32_t(* adi_hal_StreamImagePageGet)(void *devHalCfg, const char *ImagePath, uint32_t pageIndex, uint32_t pageSize, uint8_t *rdBuff)
Definition: no_os_platform.c:532
parameters.h
Platform dependent parameters.
GPIO_PL
@ GPIO_PL
Definition: gpio_extra.h:60
ADI_LOGLEVEL_DEBUG
#define ADI_LOGLEVEL_DEBUG
Definition: adi_platform_types.h:60
no_os_delay.h
Header file of Delay functions.
no_os_hw_close
int32_t no_os_hw_close(void *devHalCfg)
Gracefully shuts down the the hardware closing any open resources such as log files,...
Definition: no_os_platform.c:148
no_os_timer_wait_us
int32_t no_os_timer_wait_us(void *devHalCfg, uint32_t time_us)
Provides a blocking delay of the current thread.
Definition: no_os_platform.c:405
adi_hal_SpiWrite
int32_t(* adi_hal_SpiWrite)(void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes)
Definition: no_os_platform.c:506
adrv9002_hal_cfg::gpio_ssi_sync
struct no_os_gpio_desc * gpio_ssi_sync
Definition: no_os_platform.h:45
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:89
no_os_spi_write
int32_t no_os_spi_write(void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes)
Write an array of 8-bit data to a SPI device.
Definition: no_os_platform.c:208
adi_hal_LogFileClose
int32_t(* adi_hal_LogFileClose)(void *devHalCfg)
Definition: no_os_platform.c:516
no_os_hw_reset
int32_t no_os_hw_reset(void *devHalCfg, uint8_t pinLevel)
This function control a BBIC GPIO pin that connects to the reset pin of each device.
Definition: no_os_platform.c:182
no_os_log_file_open
int32_t no_os_log_file_open(void *devHalCfg, const char *filename)
Opens a logFile. If the file is already open it will be closed and reopened.
Definition: no_os_platform.c:301
no_os_platform.h
adrv9002 Hardware Abstraction Layer for no-OS.
TxAttenTable.h
adrv9002 TX attenuation table.
no_os_gpio_init_param::platform_ops
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:93
RxGainTable
uint8_t RxGainTable[61][4]
Default Rx gain table settings.
Definition: mykonos_user.c:22
xil_gpio_ops
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific gpio platform ops structure.
Definition: xilinx_gpio.c:455
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
no_os_spi_init_param::device_id
uint32_t device_id
Definition: no_os_spi.h:114
ADI_LOGLEVEL_FATAL
#define ADI_LOGLEVEL_FATAL
Definition: adi_platform_types.h:80
no_os_tx_atten_table_entry_get
int32_t no_os_tx_atten_table_entry_get(void *devHalCfg, const char *txAttenTablePath, uint16_t lineCount, uint16_t *attenIndex, uint8_t *txAttenHp, uint16_t *txAttenMult)
Definition: no_os_platform.c:481
no_os_log_file_close
int32_t no_os_log_file_close(void *devHalCfg)
Gracefully closes the log file(s).
Definition: no_os_platform.c:328
ADI_LOGLEVEL_NONE
#define ADI_LOGLEVEL_NONE
Definition: adi_platform_types.h:85
no_os_rx_gain_table_entry_get
int32_t no_os_rx_gain_table_entry_get(void *devHalCfg, const char *rxGainTablePath, uint16_t lineCount, uint8_t *gainIndex, uint8_t *rxFeGain, uint8_t *tiaControl, uint8_t *adcControl, uint8_t *extControl, uint16_t *phaseOffset, int16_t *digGain)
Definition: no_os_platform.c:447
adi_hal_ArmImagePageGet
int32_t(* adi_hal_ArmImagePageGet)(void *devHalCfg, const char *ImagePath, uint32_t pageIndex, uint32_t pageSize, uint8_t *rdBuff)
Definition: no_os_platform.c:530
no_os_error.h
Error codes definition.
TxAttenTableEntry::txAttenMult
uint16_t txAttenMult
Definition: TxAttenTable.h:47
ADI_LOGLEVEL_WARN
#define ADI_LOGLEVEL_WARN
Definition: adi_platform_types.h:70
adi_common_hal_LogWrite
int32_t(* adi_common_hal_LogWrite)(void *devHalCfg, uint32_t logLevel, const char *comment, va_list args)
Definition: no_os_platform.c:514
adi_hal_TxAttenTableEntryGet
int32_t(* adi_hal_TxAttenTableEntryGet)(void *devHalCfg, const char *txAttenTablePath, uint16_t lineCount, uint16_t *attenIndex, uint8_t *txAttenHp, uint16_t *txAttenMult)
Definition: no_os_platform.c:539
no_os_mcs_pulse
int32_t no_os_mcs_pulse(void *devHalCfg, uint8_t numberOfPulses)
Definition: no_os_platform.c:415
no_os_image_page_get
int32_t no_os_image_page_get(void *devHalCfg, const char *ImagePath, uint32_t pageIndex, uint32_t pageSize, uint8_t *rdBuff)
Definition: no_os_platform.c:426
no_os_hw_open
int32_t no_os_hw_open(void *devHalCfg)
Opens all neccessary files and device drivers for a specific device.
Definition: no_os_platform.c:70
adi_hal_SpiRead
int32_t(* adi_hal_SpiRead)(void *devHalCfg, const uint8_t txData[], uint8_t rxData[], uint32_t numRxBytes)
Definition: no_os_platform.c:508
no_os_gpio_remove
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:95
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:132
ORxGainTable
uint8_t ORxGainTable[19][4]
Default ORx gain table settings.
Definition: mykonos_user.c:91
adi_hal_ssi_Reset
int32_t(* adi_hal_ssi_Reset)(void *devHalCfg)
Definition: no_os_platform.c:527
no_os_ssi_reset
int32_t no_os_ssi_reset(void *devHalCfg)
Definition: no_os_platform.c:421
adi_adrv9001_hal_resetbPin_set
int32_t(* adi_adrv9001_hal_resetbPin_set)(void *devHalCfg, uint8_t pinLevel)
Definition: no_os_platform.c:502
xil_spi_init_param::type
enum xil_spi_type type
Definition: spi_extra.h:80
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
ADI_LOGLEVEL_ERROR
#define ADI_LOGLEVEL_ERROR
Definition: adi_platform_types.h:75
adrv9002_hal_cfg::gpio_reset_n
struct no_os_gpio_desc * gpio_reset_n
Definition: no_os_platform.h:44
adi_hal_LogFileOpen
int32_t(* adi_hal_LogFileOpen)(void *devHalCfg, const char *filename)
Definition: no_os_platform.c:512
no_os_spi_read
int32_t no_os_spi_read(void *devHalCfg, const uint8_t txData[], uint8_t rxData[], uint32_t numTxRxBytes)
Read one or more bytes from the device specified by the devHalCfg structure.
Definition: no_os_platform.c:254
xil_spi_init_param
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: spi_extra.h:78
no_os_gpio_get
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:55
ADI_LOGLEVEL_TRACE
#define ADI_LOGLEVEL_TRACE
Definition: adi_platform_types.h:55
ORxGainTable.h
adrv9002 Observation RX gain table.
SPI_CS
#define SPI_CS
Definition: parameters.h:74
sip
struct no_os_spi_init_param sip
Definition: common_data.c:76
adi_platform.h
adrv9002 HAL functions interface.
Navassa_Stream.h
Navassa stream binary.
adi_adrv9001_hal_close
int32_t(* adi_adrv9001_hal_close)(void *devHalCfg)
Definition: no_os_platform.c:501
SPI_DEVICE_ID
#define SPI_DEVICE_ID
Definition: parameters.h:76
GPIO_RESET
#define GPIO_RESET
Definition: parameters.h:58
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: delay.c:118
NULL
#define NULL
Definition: wrapper.h:64
SPI_PS
@ SPI_PS
Definition: spi_extra.h:68
xil_spi_ops
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:456
adi_platform_types.h
TxAttenTableEntry
Definition: TxAttenTable.h:44
adrv9002_hal_cfg::spi
struct no_os_spi_desc * spi
Definition: no_os_platform.h:43
no_os_gpio_set_value
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:160
GPIO_DEVICE_ID
#define GPIO_DEVICE_ID
Definition: parameters.h:77
adi_hal_RxGainTableEntryGet
int32_t(* adi_hal_RxGainTableEntryGet)(void *devHalCfg, const char *rxGainTablePath, uint16_t lineCount, uint8_t *gainIndex, uint8_t *rxFeGain, uint8_t *tiaControl, uint8_t *adcControl, uint8_t *extControl, uint16_t *phaseOffset, int16_t *digGain)
Definition: no_os_platform.c:534
xil_gpio_init_param
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: gpio_extra.h:70
RxGainTable.h
adrv9002 RX gain table.
no_os_spi_remove
int32_t no_os_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: no_os_spi.c:70
no_os_gpio_init_param::extra
void * extra
Definition: no_os_gpio.h:95
no_os_gpio.h
Header file of GPIO Interface.
no_os_LogFileFlush
int32_t no_os_LogFileFlush(void *devHalCfg)
Flushes the logFile buffer to the currently open log file.
Definition: no_os_platform.c:314
no_os_spi_init
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:51
adrv9002_hal_cfg
Definition: no_os_platform.h:42
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:66
no_os_log_write
int32_t no_os_log_write(void *devHalCfg, uint32_t log_level, const char *comment, va_list argp)
Writes a message to the currently open logFile specified in the adi_hal_LogCfg_t of the devHalCfg str...
Definition: no_os_platform.c:349
no_os_gpio_direction_output
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:124
adi_adrv9001_hal_open
int32_t(* adi_adrv9001_hal_open)(void *devHalCfg)
Definition: no_os_platform.c:500
ORxGainTableEntry
Definition: ORxGainTable.h:42
Navassa_EvaluationFw_bin
unsigned char Navassa_EvaluationFw_bin[]
Definition: Navassa_EvaluationFw.h:42
ADI_LOGLEVEL_INFO
#define ADI_LOGLEVEL_INFO
Definition: adi_platform_types.h:65
xil_gpio_init_param::type
enum xil_gpio_type type
Definition: gpio_extra.h:72
GPIO_PS
@ GPIO_PS
Definition: gpio_extra.h:62
Navassa_EvaluationFw.h
Navassa evaluation firmware binary.
errno.h
Error macro definition for ARM Compiler.
SPI_PL
@ SPI_PL
Definition: spi_extra.h:66
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:112
adi_hal_Mcs_Pulse
int32_t(* adi_hal_Mcs_Pulse)(void *devHalCfg, uint8_t numberOfPulses)
Definition: no_os_platform.c:523
Navassa_Stream_bin
unsigned char Navassa_Stream_bin[]
Definition: Navassa_Stream.h:42
RxGainTableEntry
Definition: RxGainTable.h:44