![]() |
no-OS
|
#include "ADRV9040_RxGainTable.h"#include "ADRV9040_DFE_CALS_FW.h"#include "DeviceProfileTest.h"#include "adi_common_error.h"#include "no_os_print_log.h"#include "no_os_platform.h"#include "stream_image.h"#include "adi_platform.h"#include "ADRV9040_FW.h"#include "no_os_mutex.h"#include "no_os_delay.h"#include "common_data.h"#include "no_os_alloc.h"#include "parameters.h"#include "no_os_gpio.h"#include "no_os_spi.h"#include <stdlib.h>#include <string.h>#include <stdio.h>#include <errno.h>Macros | |
| #define | COMPUTE(n, d) |
Functions | |
| adi_hal_Err_e | no_os_LogFileOpen (void *devHalCfg, const char *filename) |
| Opens a logFile. If the file is already open it will be closed and reopened. | |
| int32_t | no_os_LogFileFlush (void *devHalCfg) |
| Flushes the logFile buffer to the currently open log file. | |
| adi_hal_Err_e | no_os_LogFileClose (void *devHalCfg) |
| Gracefully closes the log file(s). | |
| adi_hal_Err_e | no_os_LogStatusGet (void *const devHalCfg, adi_hal_LogStatusGet_t *const logStatus) |
| adi_hal_Err_e | no_os_LogConsoleSet (void *const devHalCfg, const adi_hal_LogConsole_e logConsoleFlag) |
| adi_hal_Err_e | no_os_LogLevelSet (void *devHalCfg, const uint32_t logMask) |
| Sets the log level, allowing the end user to select the granularity of what events get logged. | |
| adi_hal_Err_e | no_os_LogLevelGet (void *const devHalCfg, uint32_t *logLevel) |
| Gets the currently set log level: the mask of different types of log events that are currently enabled to be logged. | |
| adi_hal_Err_e | no_os_LogWrite (void *const devHalCfg, const adi_hal_LogLevel_e logLevel, const uint8_t indent, const char *const comment, va_list argp) |
| Writes a message to the currently open logFile specified in the adi_hal_LogCfg_t of the devHalCfg structure passed. | |
| int32_t | no_os_SpiOpen (void *devHalCfg) |
| Opens/allocates any necessary resources to communicate via SPI to a particular device specified in the devHalCfg structure. | |
| int32_t | no_os_SpiClose (void *devHalCfg) |
| Closes any resources open/allocated for a specific SPI device. | |
| adi_hal_Err_e | no_os_SpiInit (void *devHalCfg) |
| Initializes the SPI device driver mode, bits per word, and speed. | |
| adi_hal_Err_e | no_os_SpiWrite (void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes) |
| Write an array of 8-bit data to a SPI device. | |
| adi_hal_Err_e | no_os_SpiRead (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. | |
| adi_hal_Err_e | no_os_RegisterWrite (void *const devHalCfg, const uint32_t addr, const uint32_t data) |
| adi_hal_Err_e | no_os_RegisterRead (void *const devHalCfg, const uint32_t addr, uint32_t *const data) |
| int32_t | no_os_TimerOpen (void *devHalCfg) |
| Function to open/allocate any necessary resources for the timer wait functions below. | |
| int32_t | no_os_TimerClose (void *devHalCfg) |
| Function to close any necessary resources for the timer wait functions below. | |
| int32_t | no_os_TimerInit (void *devHalCfg) |
| Function to initialize any necessary resources for the timer wait functions below. | |
| adi_hal_Err_e | no_os_TimerWait_ms (void *devHalCfg, uint32_t time_ms) |
| Provides a blocking delay of the current thread. | |
| adi_hal_Err_e | no_os_TimerWait_us (void *devHalCfg, uint32_t time_us) |
| Provides a blocking delay of the current thread. | |
| adi_hal_Err_e | no_os_mutex_init_wrapper (adi_hal_mutex_t *const mutex) |
| Initialize a mutex. | |
| adi_hal_Err_e | no_os_mutex_lock_wrapper (adi_hal_mutex_t *const mutex) |
| Lock a mutex. | |
| adi_hal_Err_e | no_os_mutex_unlock_wrapper (adi_hal_mutex_t *const mutex) |
| Unlock a mutex. | |
| adi_hal_Err_e | no_os_mutex_remove_wrapper (adi_hal_mutex_t *const mutex) |
| Remove/destroy a mutex. | |
| adi_hal_Err_e | no_os_HwOpen (void *devHalCfg) |
| Opens all necessary files and device drivers for a specific device. | |
| adi_hal_Err_e | no_os_HwClose (void *devHalCfg) |
| Gracefully shuts down the the hardware closing any open resources such as log files, I2C, SPI, GPIO drivers, timer resources, etc. | |
| adi_hal_Err_e | no_os_HwReset (void *devHalCfg, const uint8_t pinLevel) |
| This function control a BBIC GPIO pin that connects to the reset pin of each device. | |
| void * | no_os_hal_TlsGet (const adi_hal_TlsType_e tlsType) |
| adi_hal_Err_e | no_os_hal_TlsSet (const adi_hal_TlsType_e tlsType, void *const value) |
| long int | ftell (FILE *stream) |
| FILE * | fopen (const char *filename, const char *mode) |
| int | __wrap_fseek (FILE *stream, long int offset, int origin) |
| int | __wrap_fclose (FILE *stream) |
| char * | fgets (char *dst, int num, FILE *stream) |
| size_t | fread (void *ptr, size_t size, size_t count, FILE *stream) |
| size_t | fwrite (const void *ptr, size_t size, size_t count, FILE *stream) |
| long | int_20db_to_mag (long a, int mdB) |
| int | _gettimeofday (struct timeval *tv, void *tzvp) |
Variables | |
| CUSTOM_FILE | profile |
| adi_hal_Err_e(* | adi_hal_HwOpen )(void *devHalCfg) = no_os_HwOpen |
| adi_hal_Err_e(* | adi_hal_HwClose )(void *devHalCfg) = no_os_HwClose |
| adi_hal_Err_e(* | adi_hal_HwReset )(void *devHalCfg, const uint8_t pinLevel) = no_os_HwReset |
| adi_hal_Err_e(* | adi_hal_SpiInit )(void *devHalCfg) |
| void *(* | adi_hal_DevHalCfgCreate )(uint32_t interfaceMask, uint8_t spiChipSelect, const char *logFilename) = NULL |
| adi_hal_Err_e(* | adi_hal_DevHalCfgFree )(void *devHalCfg) = NULL |
| adi_hal_Err_e(* | adi_hal_SpiWrite )(void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes) = no_os_SpiWrite |
| adi_hal_Err_e(* | adi_hal_SpiRead )(void *devHalCfg, const uint8_t txData[], uint8_t rxData[], uint32_t numRxBytes) = no_os_SpiRead |
| adi_hal_Err_e(* | adi_hal_BbicRegisterWrite )(void *const devHalCfg, const uint32_t addr, const uint32_t data) = no_os_RegisterWrite |
| adi_hal_Err_e(* | adi_hal_BbicRegisterRead )(void *const devHalCfg, const uint32_t addr, uint32_t *const data) = no_os_RegisterRead |
| adi_hal_Err_e(* | adi_hal_BbicRegistersRead )(void *const devHalCfg, const uint32_t addr, uint32_t data[], const uint32_t numDataWords) = NULL |
| adi_hal_Err_e(* | adi_hal_BbicRegistersWrite )(void *const devHalCfg, const uint32_t addr, const uint32_t data[], const uint32_t numDataWords) = NULL |
| int32_t(* | adi_hal_CustomSpiStreamWrite )(void *devHalCfg, const uint16_t address, const uint8_t txData[], uint32_t numTxBytes, uint8_t numBytesofAddress, uint8_t numBytesOfDataPerStream) = NULL |
| int32_t(* | adi_hal_CustomSpiStreamRead )(void *devHalCfg, const uint16_t address, uint8_t rxData[], uint32_t numRxBytes, uint8_t numBytesofAddress, uint8_t numBytesOfDataPerStream) = NULL |
| adi_hal_Err_e(* | adi_hal_LogFileOpen )(void *devHalCfg, const char *filename) = no_os_LogFileOpen |
| adi_hal_Err_e(* | adi_hal_LogLevelSet )(void *devHalCfg, const uint32_t logMask) = no_os_LogLevelSet |
| adi_hal_Err_e(* | adi_hal_LogLevelGet )(void *const devHalCfg, uint32_t *logMask) = no_os_LogLevelGet |
| adi_hal_Err_e(* | adi_hal_LogWrite )(void *const devHalCfg, const adi_hal_LogLevel_e logLevel, const uint8_t indent, const char *const comment, va_list argp) = no_os_LogWrite |
| adi_hal_Err_e(* | adi_hal_LogFileClose )(void *devHalCfg) = no_os_LogFileClose |
| adi_hal_Err_e(* | adi_hal_LogStatusGet )(void *const devHalCfg, adi_hal_LogStatusGet_t *const logStatus) = no_os_LogStatusGet |
| adi_hal_Err_e(* | adi_hal_LogConsoleSet )(void *const devHalCfg, const adi_hal_LogConsole_e logConsoleFlag) = no_os_LogConsoleSet |
| adi_hal_Err_e(* | adi_hal_Wait_ms )(void *devHalCfg, uint32_t time_ms) = no_os_TimerWait_ms |
| adi_hal_Err_e(* | adi_hal_Wait_us )(void *devHalCfg, uint32_t time_us) = no_os_TimerWait_us |
| adi_hal_thread_t(* | adi_hal_ThreadSelf )(void) = NULL |
| void *(* | adi_hal_TlsGet )(const adi_hal_TlsType_e tlsType) = no_os_hal_TlsGet |
| adi_hal_Err_e(* | adi_hal_TlsSet )(const adi_hal_TlsType_e tlsType, void *const value) = no_os_hal_TlsSet |
| adi_hal_Err_e(* | adi_hal_MutexInit )(adi_hal_mutex_t *const mutex) |
| adi_hal_Err_e(* | adi_hal_MutexLock )(adi_hal_mutex_t *const mutex) |
| adi_hal_Err_e(* | adi_hal_MutexUnlock )(adi_hal_mutex_t *const mutex) |
| adi_hal_Err_e(* | adi_hal_MutexDestroy )(adi_hal_mutex_t *const mutex) |
| #define COMPUTE | ( | n, | |
| d ) |
| int __wrap_fclose | ( | FILE * | stream | ) |
| int __wrap_fseek | ( | FILE * | stream, |
| long int | offset, | ||
| int | origin ) |
| int _gettimeofday | ( | struct timeval * | tv, |
| void * | tzvp ) |
| char * fgets | ( | char * | dst, |
| int | num, | ||
| FILE * | stream ) |
| FILE * fopen | ( | const char * | filename, |
| const char * | mode ) |
| size_t fread | ( | void * | ptr, |
| size_t | size, | ||
| size_t | count, | ||
| FILE * | stream ) |
| long int ftell | ( | FILE * | stream | ) |
| size_t fwrite | ( | const void * | ptr, |
| size_t | size, | ||
| size_t | count, | ||
| FILE * | stream ) |
| long int_20db_to_mag | ( | long | a, |
| int | mdB ) |
| void * no_os_hal_TlsGet | ( | const adi_hal_TlsType_e | tlsType | ) |
| adi_hal_Err_e no_os_hal_TlsSet | ( | const adi_hal_TlsType_e | tlsType, |
| void *const | value ) |
| adi_hal_Err_e no_os_HwClose | ( | void * | devHalCfg | ) |
Gracefully shuts down the the hardware closing any open resources such as log files, I2C, SPI, GPIO drivers, timer resources, etc.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| adi_hal_Err_e no_os_HwOpen | ( | void * | devHalCfg | ) |
Opens all necessary files and device drivers for a specific device.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| errors | returned by other function calls. |
| adi_hal_Err_e no_os_HwReset | ( | void * | devHalCfg, |
| const uint8_t | pinLevel ) |
This function control a BBIC GPIO pin that connects to the reset pin of each device.
This function is called by each device API giving access to the Reset pin connected to each device.
| devHalCfg | Pointer to device instance specific platform settings |
| pinLevel | The desired pin logic level 0=low, 1=high to set the GPIO pin to. |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| adi_hal_Err_e no_os_LogConsoleSet | ( | void *const | devHalCfg, |
| const adi_hal_LogConsole_e | logConsoleFlag ) |
ToDo
| adi_hal_Err_e no_os_LogFileClose | ( | void * | devHalCfg | ) |
Gracefully closes the log file(s).
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| ADI_HAL_LOGGING_FAIL | Error while flushing or closing the log file. |
| int32_t no_os_LogFileFlush | ( | void * | devHalCfg | ) |
Flushes the logFile buffer to the currently open log file.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| adi_hal_Err_e no_os_LogFileOpen | ( | void * | devHalCfg, |
| const char * | filename ) |
Opens a logFile. If the file is already open it will be closed and reopened.
This function opens the file for writing and saves the resulting file descriptor to the devHalCfg structure.
| devHalCfg | Pointer to device instance specific platform settings |
| filename | The user provided name of the file to open. |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| ADI_HAL_LOGGING_FAIL | If the function failed to open or write to the specified filename |
| adi_hal_Err_e no_os_LogLevelGet | ( | void *const | devHalCfg, |
| uint32_t * | logLevel ) |
Gets the currently set log level: the mask of different types of log events that are currently enabled to be logged.
| devHalCfg | Pointer to device instance specific platform settings |
| logLevel | Returns the current log level mask. |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| adi_hal_Err_e no_os_LogLevelSet | ( | void * | devHalCfg, |
| const uint32_t | logMask ) |
Sets the log level, allowing the end user to select the granularity of what events get logged.
| devHalCfg | Pointer to device instance specific platform settings |
| logMask | A mask of valid log levels to allow to be written to the log file. |
| ADI_COMMON_ERR_ACT_CHECK_PARAM | Recovery action for bad parameter check |
| ADI_COMMON_ACT_NO_ACTION | Function completed successfully, no action required |
| adi_hal_Err_e no_os_LogStatusGet | ( | void *const | devHalCfg, |
| adi_hal_LogStatusGet_t *const | logStatus ) |
ToDo
| adi_hal_Err_e no_os_LogWrite | ( | void *const | devHalCfg, |
| const adi_hal_LogLevel_e | logLevel, | ||
| const uint8_t | indent, | ||
| const char *const | comment, | ||
| va_list | argp ) |
Writes a message to the currently open logFile specified in the adi_hal_LogCfg_t of the devHalCfg structure passed.
Uses the vfprintf functionality to allow the user to supply the format and the number of aguments that will be logged.
| devHalCfg | Pointer to device instance specific platform settings |
| logLevel | the log level to be written into |
| indent | the indentation level for the log message |
| comment | the string to include in the line added to the log. |
| argp | variable argument list to be printed |
| ADI_HAL_ERR_OK | Function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | The function has been called with a null pointer |
| ADI_HAL_LOGGING_FAIL | If the function failed to flush to write |
| adi_hal_Err_e no_os_mutex_init_wrapper | ( | adi_hal_mutex_t *const | mutex | ) |
Initialize a mutex.
Note: Mutex operations are currently not implemented for this platform. These are stub functions that return success to allow the code to compile and run in single-threaded environments.
| adi_hal_Err_e no_os_mutex_lock_wrapper | ( | adi_hal_mutex_t *const | mutex | ) |
Lock a mutex.
Note: Mutex operations are currently not implemented for this platform.
| adi_hal_Err_e no_os_mutex_remove_wrapper | ( | adi_hal_mutex_t *const | mutex | ) |
Remove/destroy a mutex.
Note: Mutex operations are currently not implemented for this platform.
| adi_hal_Err_e no_os_mutex_unlock_wrapper | ( | adi_hal_mutex_t *const | mutex | ) |
Unlock a mutex.
Note: Mutex operations are currently not implemented for this platform.
| adi_hal_Err_e no_os_RegisterRead | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| uint32_t *const | data ) |
ToDo
| adi_hal_Err_e no_os_RegisterWrite | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| const uint32_t | data ) |
ToDo
| int32_t no_os_SpiClose | ( | void * | devHalCfg | ) |
Closes any resources open/allocated for a specific SPI device.
Any information needed to close the particular SPI device should be passed in the devHalCfg structure.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| ADI_HAL_SPI_FAIL | the device driver was not closed successfully |
| adi_hal_Err_e no_os_SpiInit | ( | void * | devHalCfg | ) |
Initializes the SPI device driver mode, bits per word, and speed.
Any settings needed should be passed in the devHalCfg structure
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| ADI_HAL_SPI_FAIL | the SPI initialization failed |
| int32_t no_os_SpiOpen | ( | void * | devHalCfg | ) |
Opens/allocates any necessary resources to communicate via SPI to a particular device specified in the devHalCfg structure.
This function should perform any necessary steps to open the SPI master resource on the BBIC to enable SPI communications to a particular SPI device.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| ADI_HAL_SPI_FAIL | the device driver was not opened successfully |
| adi_hal_Err_e no_os_SpiRead | ( | 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.
The function will read numTxRxBytes number of bytes from the SPI device selected in the devHalCfg parameter and store the resulting data sent by the device in the rxData data buffer.
For each byte in txData written to the device, a byte is read and returned by this function at the pointer provided by the rxData parameter.
| devHalCfg | Pointer to device instance specific platform settings |
| txData | Pointer to byte array that has numTxRxBytes number of bytes |
| rxData | Pointer to byte array where read back data will be returned, that is at least numTxRxBytes in size. |
| numTxRxBytes | The length of txData and rxData arrays |
| ADI_HAL_ERR_OK | function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| ADI_HAL_SPI_FAIL | the data was not read successfully |
| adi_hal_Err_e no_os_SpiWrite | ( | void * | devHalCfg, |
| const uint8_t | txData[], | ||
| uint32_t | numTxBytes ) |
Write an array of 8-bit data to a SPI device.
The function will write numTxBytes number of bytes to the SPI device selected in the devHalCfg structure.
| devHalCfg | Pointer to device instance specific platform settings |
| txData | Pointer to byte array txData buffer that has numTxBytes number of bytes |
| numTxBytes | The length of txData array |
| ADI_HAL_ERR_OK | function completed successfully, no action required |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| ADI_HAL_SPI_FAIL | the data was not written successfully |
| int32_t no_os_TimerClose | ( | void * | devHalCfg | ) |
Function to close any necessary resources for the timer wait functions below.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully |
| int32_t no_os_TimerInit | ( | void * | devHalCfg | ) |
Function to initialize any necessary resources for the timer wait functions below.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully |
| int32_t no_os_TimerOpen | ( | void * | devHalCfg | ) |
Function to open/allocate any necessary resources for the timer wait functions below.
| devHalCfg | Pointer to device instance specific platform settings |
| ADI_HAL_ERR_OK | Function completed successfully |
| adi_hal_Err_e no_os_TimerWait_ms | ( | void * | devHalCfg, |
| uint32_t | time_ms ) |
Provides a blocking delay of the current thread.
pthread_mutex_t
| devHalCfg | Pointer to device instance specific platform settings |
| time_ms | the time to delay in milli seconds |
| ADI_HAL_ERR_OK | Function completed successfully |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| adi_hal_Err_e no_os_TimerWait_us | ( | void * | devHalCfg, |
| uint32_t | time_us ) |
Provides a blocking delay of the current thread.
| devHalCfg | Pointer to device instance specific platform settings |
| time_us | the time to delay in mico seconds |
| ADI_HAL_ERR_OK | Function completed successfully |
| ADI_HAL_ERR_NULL_PTR | the function has been called with a null pointer |
| adi_hal_Err_e(* adi_hal_BbicRegisterRead) (void *const devHalCfg, const uint32_t addr, uint32_t *const data) | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| uint32_t *const | data ) = no_os_RegisterRead |
| adi_hal_Err_e(* adi_hal_BbicRegistersRead) (void *const devHalCfg, const uint32_t addr, uint32_t data[], const uint32_t numDataWords) | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| uint32_t | data[], | ||
| const uint32_t | numDataWords ) = NULL |
| adi_hal_Err_e(* adi_hal_BbicRegistersWrite) (void *const devHalCfg, const uint32_t addr, const uint32_t data[], const uint32_t numDataWords) | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| const uint32_t | data[], | ||
| const uint32_t | numDataWords ) = NULL |
| adi_hal_Err_e(* adi_hal_BbicRegisterWrite) (void *const devHalCfg, const uint32_t addr, const uint32_t data) | ( | void *const | devHalCfg, |
| const uint32_t | addr, | ||
| const uint32_t | data ) = no_os_RegisterWrite |
| int32_t(* adi_hal_CustomSpiStreamRead) (void *devHalCfg, const uint16_t address, uint8_t rxData[], uint32_t numRxBytes, uint8_t numBytesofAddress, uint8_t numBytesOfDataPerStream) | ( | void * | devHalCfg, |
| const uint16_t | address, | ||
| uint8_t | rxData[], | ||
| uint32_t | numRxBytes, | ||
| uint8_t | numBytesofAddress, | ||
| uint8_t | numBytesOfDataPerStream ) = NULL |
| int32_t(* adi_hal_CustomSpiStreamWrite) (void *devHalCfg, const uint16_t address, const uint8_t txData[], uint32_t numTxBytes, uint8_t numBytesofAddress, uint8_t numBytesOfDataPerStream) | ( | void * | devHalCfg, |
| const uint16_t | address, | ||
| const uint8_t | txData[], | ||
| uint32_t | numTxBytes, | ||
| uint8_t | numBytesofAddress, | ||
| uint8_t | numBytesOfDataPerStream ) = NULL |
| void *(* adi_hal_DevHalCfgCreate) (uint32_t interfaceMask, uint8_t spiChipSelect, const char *logFilename) | ( | uint32_t | interfaceMask, |
| uint8_t | spiChipSelect, | ||
| const char * | logFilename ) = NULL |
| adi_hal_Err_e(* adi_hal_DevHalCfgFree) (void *devHalCfg) | ( | void * | devHalCfg | ) | = NULL |
| adi_hal_Err_e(* adi_hal_HwClose) (void *devHalCfg) | ( | void * | devHalCfg | ) | = no_os_HwClose |
| adi_hal_Err_e(* adi_hal_HwOpen) (void *devHalCfg) | ( | void * | devHalCfg | ) | = no_os_HwOpen |
| adi_hal_Err_e(* adi_hal_HwReset) (void *devHalCfg, const uint8_t pinLevel) | ( | void * | devHalCfg, |
| const uint8_t | pinLevel ) = no_os_HwReset |
| adi_hal_Err_e(* adi_hal_LogConsoleSet) (void *const devHalCfg, const adi_hal_LogConsole_e logConsoleFlag) | ( | void *const | devHalCfg, |
| const adi_hal_LogConsole_e | logConsoleFlag ) = no_os_LogConsoleSet |
| adi_hal_Err_e(* adi_hal_LogFileClose) (void *devHalCfg) | ( | void * | devHalCfg | ) | = no_os_LogFileClose |
| adi_hal_Err_e(* adi_hal_LogFileOpen) (void *devHalCfg, const char *filename) | ( | void * | devHalCfg, |
| const char * | filename ) = no_os_LogFileOpen |
| adi_hal_Err_e(* adi_hal_LogLevelGet) (void *const devHalCfg, uint32_t *logMask) | ( | void *const | devHalCfg, |
| uint32_t * | logMask ) = no_os_LogLevelGet |
| adi_hal_Err_e(* adi_hal_LogLevelSet) (void *devHalCfg, const uint32_t logMask) | ( | void * | devHalCfg, |
| const uint32_t | logMask ) = no_os_LogLevelSet |
| adi_hal_Err_e(* adi_hal_LogStatusGet) (void *const devHalCfg, adi_hal_LogStatusGet_t *const logStatus) | ( | void *const | devHalCfg, |
| adi_hal_LogStatusGet_t *const | logStatus ) = no_os_LogStatusGet |
| adi_hal_Err_e(* adi_hal_LogWrite) (void *const devHalCfg, const adi_hal_LogLevel_e logLevel, const uint8_t indent, const char *const comment, va_list argp) | ( | void *const | devHalCfg, |
| const adi_hal_LogLevel_e | logLevel, | ||
| const uint8_t | indent, | ||
| const char *const | comment, | ||
| va_list | argp ) = no_os_LogWrite |
| adi_hal_Err_e(* adi_hal_MutexDestroy) (adi_hal_mutex_t *const mutex) | ( | adi_hal_mutex_t *const | mutex | ) |
| adi_hal_Err_e(* adi_hal_MutexInit) (adi_hal_mutex_t *const mutex) | ( | adi_hal_mutex_t *const | mutex | ) |
| adi_hal_Err_e(* adi_hal_MutexLock) (adi_hal_mutex_t *const mutex) | ( | adi_hal_mutex_t *const | mutex | ) |
| adi_hal_Err_e(* adi_hal_MutexUnlock) (adi_hal_mutex_t *const mutex) | ( | adi_hal_mutex_t *const | mutex | ) |
| adi_hal_Err_e(* adi_hal_SpiInit) (void *devHalCfg) | ( | void * | devHalCfg | ) |
| adi_hal_Err_e(* adi_hal_SpiRead) (void *devHalCfg, const uint8_t txData[], uint8_t rxData[], uint32_t numRxBytes) | ( | void * | devHalCfg, |
| const uint8_t | txData[], | ||
| uint8_t | rxData[], | ||
| uint32_t | numRxBytes ) = no_os_SpiRead |
| adi_hal_Err_e(* adi_hal_SpiWrite) (void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes) | ( | void * | devHalCfg, |
| const uint8_t | txData[], | ||
| uint32_t | numTxBytes ) = no_os_SpiWrite |
| adi_hal_thread_t(* adi_hal_ThreadSelf) (void) | ( | void | ) | = NULL |
| void *(* adi_hal_TlsGet) (const adi_hal_TlsType_e tlsType) | ( | const adi_hal_TlsType_e | tlsType | ) | = no_os_hal_TlsGet |
| adi_hal_Err_e(* adi_hal_TlsSet) (const adi_hal_TlsType_e tlsType, void *const value) | ( | const adi_hal_TlsType_e | tlsType, |
| void *const | value ) = no_os_hal_TlsSet |
| adi_hal_Err_e(* adi_hal_Wait_ms) (void *devHalCfg, uint32_t time_ms) | ( | void * | devHalCfg, |
| uint32_t | time_ms ) = no_os_TimerWait_ms |
| adi_hal_Err_e(* adi_hal_Wait_us) (void *devHalCfg, uint32_t time_us) | ( | void * | devHalCfg, |
| uint32_t | time_us ) = no_os_TimerWait_us |
BBIC Timer functions
| CUSTOM_FILE profile |
Copyright 2015 - 2023 Analog Devices Inc. Released under the ADRV9025 API license, for more information. see the "LICENSE.txt" file in this zip file.