no-OS
Loading...
Searching...
No Matches
no_os_platform.c File Reference
#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>
Include dependency graph for no_os_platform.c:

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)
 

Macro Definition Documentation

◆ COMPUTE

#define COMPUTE ( n,
d )
Value:
if (neg) {a *= d; a /= n;} else {a *= n; a /= d;};

Function Documentation

◆ __wrap_fclose()

int __wrap_fclose ( FILE * stream)

◆ __wrap_fseek()

int __wrap_fseek ( FILE * stream,
long int offset,
int origin )

◆ _gettimeofday()

int _gettimeofday ( struct timeval * tv,
void * tzvp )

◆ fgets()

char * fgets ( char * dst,
int num,
FILE * stream )

◆ fopen()

FILE * fopen ( const char * filename,
const char * mode )

◆ fread()

size_t fread ( void * ptr,
size_t size,
size_t count,
FILE * stream )

◆ ftell()

long int ftell ( FILE * stream)

◆ fwrite()

size_t fwrite ( const void * ptr,
size_t size,
size_t count,
FILE * stream )

◆ int_20db_to_mag()

long int_20db_to_mag ( long a,
int mdB )

◆ no_os_hal_TlsGet()

void * no_os_hal_TlsGet ( const adi_hal_TlsType_e tlsType)

◆ no_os_hal_TlsSet()

adi_hal_Err_e no_os_hal_TlsSet ( const adi_hal_TlsType_e tlsType,
void *const value )

◆ no_os_HwClose()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer

◆ no_os_HwOpen()

adi_hal_Err_e no_os_HwOpen ( void * devHalCfg)

Opens all necessary files and device drivers for a specific device.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer
errorsreturned by other function calls.

◆ no_os_HwReset()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
pinLevelThe desired pin logic level 0=low, 1=high to set the GPIO pin to.
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer

◆ no_os_LogConsoleSet()

adi_hal_Err_e no_os_LogConsoleSet ( void *const devHalCfg,
const adi_hal_LogConsole_e logConsoleFlag )

ToDo

◆ no_os_LogFileClose()

adi_hal_Err_e no_os_LogFileClose ( void * devHalCfg)

Gracefully closes the log file(s).

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer
ADI_HAL_LOGGING_FAILError while flushing or closing the log file.

◆ no_os_LogFileFlush()

int32_t no_os_LogFileFlush ( void * devHalCfg)

Flushes the logFile buffer to the currently open log file.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer

◆ no_os_LogFileOpen()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
filenameThe user provided name of the file to open.
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer
ADI_HAL_LOGGING_FAILIf the function failed to open or write to the specified filename

◆ no_os_LogLevelGet()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
logLevelReturns the current log level mask.
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer

◆ no_os_LogLevelSet()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
logMaskA mask of valid log levels to allow to be written to the log file.
Return values
ADI_COMMON_ERR_ACT_CHECK_PARAMRecovery action for bad parameter check
ADI_COMMON_ACT_NO_ACTIONFunction completed successfully, no action required

◆ no_os_LogStatusGet()

adi_hal_Err_e no_os_LogStatusGet ( void *const devHalCfg,
adi_hal_LogStatusGet_t *const logStatus )

ToDo

◆ no_os_LogWrite()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
logLevelthe log level to be written into
indentthe indentation level for the log message
commentthe string to include in the line added to the log.
argpvariable argument list to be printed
Return values
ADI_HAL_ERR_OKFunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRThe function has been called with a null pointer
ADI_HAL_LOGGING_FAILIf the function failed to flush to write

◆ no_os_mutex_init_wrapper()

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.

◆ no_os_mutex_lock_wrapper()

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.

◆ no_os_mutex_remove_wrapper()

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.

◆ no_os_mutex_unlock_wrapper()

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.

◆ no_os_RegisterRead()

adi_hal_Err_e no_os_RegisterRead ( void *const devHalCfg,
const uint32_t addr,
uint32_t *const data )

ToDo

◆ no_os_RegisterWrite()

adi_hal_Err_e no_os_RegisterWrite ( void *const devHalCfg,
const uint32_t addr,
const uint32_t data )

ToDo

◆ no_os_SpiClose()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKfunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer
ADI_HAL_SPI_FAILthe device driver was not closed successfully

◆ no_os_SpiInit()

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

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKfunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer
ADI_HAL_SPI_FAILthe SPI initialization failed

◆ no_os_SpiOpen()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKfunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer
ADI_HAL_SPI_FAILthe device driver was not opened successfully

◆ no_os_SpiRead()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
txDataPointer to byte array that has numTxRxBytes number of bytes
rxDataPointer to byte array where read back data will be returned, that is at least numTxRxBytes in size.
numTxRxBytesThe length of txData and rxData arrays
Return values
ADI_HAL_ERR_OKfunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer
ADI_HAL_SPI_FAILthe data was not read successfully

◆ no_os_SpiWrite()

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.

Parameters
devHalCfgPointer to device instance specific platform settings
txDataPointer to byte array txData buffer that has numTxBytes number of bytes
numTxBytesThe length of txData array
Return values
ADI_HAL_ERR_OKfunction completed successfully, no action required
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer
ADI_HAL_SPI_FAILthe data was not written successfully

◆ no_os_TimerClose()

int32_t no_os_TimerClose ( void * devHalCfg)

Function to close any necessary resources for the timer wait functions below.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully

◆ no_os_TimerInit()

int32_t no_os_TimerInit ( void * devHalCfg)

Function to initialize any necessary resources for the timer wait functions below.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully

◆ no_os_TimerOpen()

int32_t no_os_TimerOpen ( void * devHalCfg)

Function to open/allocate any necessary resources for the timer wait functions below.

Parameters
devHalCfgPointer to device instance specific platform settings
Return values
ADI_HAL_ERR_OKFunction completed successfully

◆ no_os_TimerWait_ms()

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

Parameters
devHalCfgPointer to device instance specific platform settings
time_msthe time to delay in milli seconds
Return values
ADI_HAL_ERR_OKFunction completed successfully
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer

◆ no_os_TimerWait_us()

adi_hal_Err_e no_os_TimerWait_us ( void * devHalCfg,
uint32_t time_us )

Provides a blocking delay of the current thread.

Parameters
devHalCfgPointer to device instance specific platform settings
time_usthe time to delay in mico seconds
Return values
ADI_HAL_ERR_OKFunction completed successfully
ADI_HAL_ERR_NULL_PTRthe function has been called with a null pointer

Variable Documentation

◆ adi_hal_BbicRegisterRead

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_BbicRegistersRead

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_BbicRegistersWrite

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_BbicRegisterWrite

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

◆ adi_hal_CustomSpiStreamRead

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

◆ adi_hal_CustomSpiStreamWrite

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

◆ adi_hal_DevHalCfgCreate

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_DevHalCfgFree

adi_hal_Err_e(* adi_hal_DevHalCfgFree) (void *devHalCfg) ( void * devHalCfg) = NULL

◆ adi_hal_HwClose

adi_hal_Err_e(* adi_hal_HwClose) (void *devHalCfg) ( void * devHalCfg) = no_os_HwClose

◆ adi_hal_HwOpen

adi_hal_Err_e(* adi_hal_HwOpen) (void *devHalCfg) ( void * devHalCfg) = no_os_HwOpen

◆ adi_hal_HwReset

adi_hal_Err_e(* adi_hal_HwReset) (void *devHalCfg, const uint8_t pinLevel) ( void * devHalCfg,
const uint8_t pinLevel ) = no_os_HwReset

◆ adi_hal_LogConsoleSet

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_LogFileClose

adi_hal_Err_e(* adi_hal_LogFileClose) (void *devHalCfg) ( void * devHalCfg) = no_os_LogFileClose

◆ adi_hal_LogFileOpen

adi_hal_Err_e(* adi_hal_LogFileOpen) (void *devHalCfg, const char *filename) ( void * devHalCfg,
const char * filename ) = no_os_LogFileOpen

◆ adi_hal_LogLevelGet

adi_hal_Err_e(* adi_hal_LogLevelGet) (void *const devHalCfg, uint32_t *logMask) ( void *const devHalCfg,
uint32_t * logMask ) = no_os_LogLevelGet

◆ adi_hal_LogLevelSet

adi_hal_Err_e(* adi_hal_LogLevelSet) (void *devHalCfg, const uint32_t logMask) ( void * devHalCfg,
const uint32_t logMask ) = no_os_LogLevelSet

◆ adi_hal_LogStatusGet

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_LogWrite

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_MutexDestroy

adi_hal_Err_e(* adi_hal_MutexDestroy) (adi_hal_mutex_t *const mutex) ( adi_hal_mutex_t *const mutex)
Initial value:
=
adi_hal_Err_e no_os_mutex_remove_wrapper(adi_hal_mutex_t *const mutex)
Remove/destroy a mutex.
Definition no_os_platform.c:557

◆ adi_hal_MutexInit

adi_hal_Err_e(* adi_hal_MutexInit) (adi_hal_mutex_t *const mutex) ( adi_hal_mutex_t *const mutex)
Initial value:
=
adi_hal_Err_e no_os_mutex_init_wrapper(adi_hal_mutex_t *const mutex)
Initialize a mutex.
Definition no_os_platform.c:518

◆ adi_hal_MutexLock

adi_hal_Err_e(* adi_hal_MutexLock) (adi_hal_mutex_t *const mutex) ( adi_hal_mutex_t *const mutex)
Initial value:
=
adi_hal_Err_e no_os_mutex_lock_wrapper(adi_hal_mutex_t *const mutex)
Lock a mutex.
Definition no_os_platform.c:531

◆ adi_hal_MutexUnlock

adi_hal_Err_e(* adi_hal_MutexUnlock) (adi_hal_mutex_t *const mutex) ( adi_hal_mutex_t *const mutex)
Initial value:
=
adi_hal_Err_e no_os_mutex_unlock_wrapper(adi_hal_mutex_t *const mutex)
Unlock a mutex.
Definition no_os_platform.c:544

◆ adi_hal_SpiInit

adi_hal_Err_e(* adi_hal_SpiInit) (void *devHalCfg) ( void * devHalCfg)
Initial value:
=
int32_t no_os_SpiInit(void *devHalCfg)
Initializes the SPI device driver mode, bits per word, and speed.
Definition no_os_platform.c:284

◆ adi_hal_SpiRead

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_SpiWrite

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_ThreadSelf

adi_hal_thread_t(* adi_hal_ThreadSelf) (void) ( void ) = NULL

◆ adi_hal_TlsGet

void *(* adi_hal_TlsGet) (const adi_hal_TlsType_e tlsType) ( const adi_hal_TlsType_e tlsType) = no_os_hal_TlsGet

◆ adi_hal_TlsSet

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_Wait_ms

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_Wait_us

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

◆ profile

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.