Go to the documentation of this file.
18 #define DIV_U64(x, y) no_os_div_u64(x, y)
19 #define DIV_S64(x, y) no_os_div_s64(x, y)
20 #define DIV_ROUND_CLOSEST NO_OS_DIV_ROUND_CLOSEST
21 #define DIV_ROUND_CLOSEST_ULL NO_OS_DIV_ROUND_CLOSEST_ULL
82 #define HAL_SPIWRITEARRAY_BUFFERSIZE 341
332 uint8_t *data, uint32_t count);
405 uint8_t *readdata, uint32_t count);
459 uint8_t fieldVal, uint8_t mask, uint8_t startBit);
511 uint8_t *fieldVal, uint8_t mask, uint8_t startBit);
622 uint32_t errorCode,
const char *comment);
adiHalErr_t ADIHAL_spiWriteBytes(void *devHalInfo, uint16_t *addr, uint8_t *data, uint32_t count)
Writes an array of SPI writes to an ADI Device.
Definition: no_os_hal.c:187
adiLogLevel_t
An enumerated type in bit mask format to list the log message categories or groups.
Definition: adi_hal.h:57
uint32_t log_level
Definition: adi_hal.h:31
struct no_os_spi_desc * spi_adrv_desc
Definition: adi_hal.h:30
adiHalErr_t ADIHAL_spiWriteByte(void *devHalInfo, uint16_t addr, uint8_t data)
Performs a Single SPI write to an ADI Device.
Definition: no_os_hal.c:169
adiHalErr_t ADIHAL_setTimeout(void *devHalInfo, uint32_t halTimeout_ms)
Sets the a timeout duration for the HAL functions.
Definition: no_os_hal.c:62
@ SYSREF_CONT_OFF
Definition: adi_hal.h:69
struct no_os_gpio_desc * gpio_adrv_resetb
Definition: adi_hal.h:28
@ ADIHAL_LOG_NONE
Definition: adi_hal.h:58
adiHalErr_t ADIHAL_spiReadByte(void *devHalInfo, uint16_t addr, uint8_t *readdata)
Performs a Single SPI Read from an ADI Device.
Definition: no_os_hal.c:202
adiHalErr_t ADIHAL_resetHw(void *devHalInfo)
Performs a hardware reset on the ADI Device.
Definition: no_os_hal.c:136
@ ADIHAL_WAIT_TIMEOUT
Definition: adi_hal.h:47
sysrefReqMode_t
Definition: adi_hal.h:67
adiHalErr_t ADIHAL_closeHw(void *devHalInfo)
Closes any platform hardware drivers, handles, etc that were necessary for the ADI Device.
Definition: no_os_hal.c:119
@ SYSREF_PULSE
Definition: adi_hal.h:70
adiHalErr_t ADIHAL_spiReadBytes(void *devHalInfo, uint16_t *addr, uint8_t *readdata, uint32_t count)
Performs a Multi SPI Read from an ADI Device.
Definition: no_os_hal.c:223
uint8_t spi_adrv_csn
Definition: adi_hal.h:33
void * extra_spi
Definition: adi_hal.h:32
@ ADIHAL_WARNING
Definition: adi_hal.h:49
@ ADIHAL_GEN_SW
Definition: adi_hal.h:48
adiHalErr_t ADIHAL_sysrefReq(void *devHalInfo, sysrefReqMode_t mode)
Performs a SYSREF request to the clock generation device.
Definition: no_os_hal.c:150
adiHalErr_t ADIHAL_spiWriteField(void *devHalInfo, uint16_t addr, uint8_t fieldVal, uint8_t mask, uint8_t startBit)
Performs a write to the specified field in a SPI register.
Definition: no_os_hal.c:238
@ ADIHAL_LOG_SPI
Definition: adi_hal.h:62
adiHalErr_t ADIHAL_setLogLevel(void *devHalInfo, uint16_t halLogLevel)
Writes a character array to a log file to facilitate debugging.
Definition: no_os_hal.c:293
Structure holding SPI descriptor.
Definition: no_os_spi.h:177
@ ADIHAL_LOG_WARN
Definition: adi_hal.h:60
@ ADIHAL_LOG_MSG
Definition: adi_hal.h:59
@ ADIHAL_OK
Definition: adi_hal.h:43
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
@ ADIHAL_TIMER_FAIL
Definition: adi_hal.h:46
adiHalErr_t ADIHAL_wait_us(void *devHalInfo, uint32_t time_us)
Delay or sleep for the specified number of microseconds.
Definition: no_os_hal.c:268
uint8_t gpio_adrv_resetb_num
Definition: adi_hal.h:35
@ ADIHAL_GPIO_FAIL
Definition: adi_hal.h:45
struct no_os_gpio_desc * gpio_adrv_sysref_req
Definition: adi_hal.h:29
adiHalErr_t ADIHAL_writeToLog(void *devHalInfo, adiLogLevel_t logLevel, uint32_t errorCode, const char *comment)
Writes a character array to a log file to facilitate debugging.
Definition: no_os_hal.c:275
void * extra_gpio
Definition: adi_hal.h:34
@ SYSREF_CONT_ON
Definition: adi_hal.h:68
@ ADIHAL_ERR
Definition: adi_hal.h:50
@ ADIHAL_LOG_ALL
Definition: adi_hal.h:63
@ ADIHAL_SPI_FAIL
Definition: adi_hal.h:44
Header file of utility functions.
adiHalErr_t ADIHAL_openHw(void *devHalInfo, uint32_t halTimeout_ms)
Performs a platform hardware initialization for the ADI Device.
Definition: no_os_hal.c:67
enum no_os_spi_mode mode
Definition: no_os_spi.h:187
@ ADIHAL_LOG_ERR
Definition: adi_hal.h:61
adiHalErr_t ADIHAL_spiReadField(void *devHalInfo, uint16_t addr, uint8_t *fieldVal, uint8_t mask, uint8_t startBit)
Performs a read from a particular bit field in a SPI register.
Definition: no_os_hal.c:253
adiHalErr_t
Enum of possible Errors Detected by HAL layer to be communicated to ADI APIs.
Definition: adi_hal.h:42