no-OS
Loading...
Searching...
No Matches
no_os_platform.c File Reference
#include "ADRV9030_FW.h"
#include "ADRV9030_stream_image.h"
#include "ADRV9030_DeviceProfileTest.h"
#include "ADRV9030_RxGainTable.h"
#include "adi_common_error.h"
#include "no_os_print_log.h"
#include "no_os_platform.h"
#include "adi_platform.h"
#include "no_os_mutex.h"
#include "no_os_delay.h"
#include "common_data.h"
#include "no_os_alloc.h"
#include "parameters.h"
#include "app_config.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:

Functions

adi_hal_Err_e no_os_LogFileOpen (void *devHalCfg, const char *filename)
 
int32_t no_os_LogFileFlush (void *devHalCfg)
 
adi_hal_Err_e no_os_LogFileClose (void *devHalCfg)
 
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)
 
adi_hal_Err_e no_os_LogLevelGet (void *const devHalCfg, uint32_t *logLevel)
 
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)
 
int32_t no_os_SpiOpen (void *devHalCfg)
 
int32_t no_os_SpiClose (void *devHalCfg)
 
adi_hal_Err_e no_os_SpiInit (void *devHalCfg)
 
adi_hal_Err_e no_os_SpiWrite (void *devHalCfg, const uint8_t txData[], uint32_t numTxBytes)
 
adi_hal_Err_e no_os_SpiRead (void *devHalCfg, const uint8_t txData[], uint8_t rxData[], uint32_t numTxRxBytes)
 
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)
 
int32_t no_os_TimerClose (void *devHalCfg)
 
int32_t no_os_TimerInit (void *devHalCfg)
 
adi_hal_Err_e no_os_TimerWait_ms (void *devHalCfg, uint32_t time_ms)
 
adi_hal_Err_e no_os_TimerWait_us (void *devHalCfg, uint32_t time_us)
 
adi_hal_Err_e no_os_mutex_init_wrapper (adi_hal_mutex_t *const mutex)
 
adi_hal_Err_e no_os_mutex_lock_wrapper (adi_hal_mutex_t *const mutex)
 
adi_hal_Err_e no_os_mutex_unlock_wrapper (adi_hal_mutex_t *const mutex)
 
adi_hal_Err_e no_os_mutex_remove_wrapper (adi_hal_mutex_t *const mutex)
 
adi_hal_Err_e no_os_HwOpen (void *devHalCfg)
 
adi_hal_Err_e no_os_HwClose (void *devHalCfg)
 
adi_hal_Err_e no_os_HwReset (void *devHalCfg, const uint8_t pinLevel)
 
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)
 
int _gettimeofday (struct timeval *tv, void *tzvp)
 

Variables

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) = no_os_SpiInit
 
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
 
adi_hal_Err_e(* adi_hal_I2cWrite )(void *const devHalCfg, const uint8_t txData[], const uint32_t numTxBytes) = NULL
 
adi_hal_Err_e(* adi_hal_I2cRead )(void *const devHalCfg, const uint8_t txData[], const uint32_t numTxBytes, uint8_t rxData[], const uint32_t numRxBytes) = 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)
 
adi_hal_Err_e(* adi_hal_BoardIdentify )(char **boardNames, int32_t *numBoards) = NULL
 

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 )

◆ 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)

◆ no_os_HwOpen()

adi_hal_Err_e no_os_HwOpen ( void * devHalCfg)

◆ no_os_HwReset()

adi_hal_Err_e no_os_HwReset ( void * devHalCfg,
const uint8_t pinLevel )

◆ no_os_LogConsoleSet()

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

◆ no_os_LogFileClose()

adi_hal_Err_e no_os_LogFileClose ( void * devHalCfg)

◆ no_os_LogFileFlush()

int32_t no_os_LogFileFlush ( void * devHalCfg)

◆ no_os_LogFileOpen()

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

Copyright 2026 Analog Devices Inc. Released under the ADRV903X API license, for more information. see the "LICENSE.txt" file in this zip file.

◆ no_os_LogLevelGet()

adi_hal_Err_e no_os_LogLevelGet ( void *const devHalCfg,
uint32_t * logLevel )

◆ no_os_LogLevelSet()

adi_hal_Err_e no_os_LogLevelSet ( void * devHalCfg,
const uint32_t logMask )

◆ no_os_LogStatusGet()

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

◆ 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 )

◆ no_os_mutex_init_wrapper()

adi_hal_Err_e no_os_mutex_init_wrapper ( adi_hal_mutex_t *const mutex)

◆ no_os_mutex_lock_wrapper()

adi_hal_Err_e no_os_mutex_lock_wrapper ( adi_hal_mutex_t *const mutex)

◆ no_os_mutex_remove_wrapper()

adi_hal_Err_e no_os_mutex_remove_wrapper ( adi_hal_mutex_t *const mutex)

◆ no_os_mutex_unlock_wrapper()

adi_hal_Err_e no_os_mutex_unlock_wrapper ( adi_hal_mutex_t *const mutex)

◆ no_os_RegisterRead()

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

◆ no_os_RegisterWrite()

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

◆ no_os_SpiClose()

int32_t no_os_SpiClose ( void * devHalCfg)

◆ no_os_SpiInit()

adi_hal_Err_e no_os_SpiInit ( void * devHalCfg)

◆ no_os_SpiOpen()

int32_t no_os_SpiOpen ( void * devHalCfg)

◆ no_os_SpiRead()

adi_hal_Err_e no_os_SpiRead ( void * devHalCfg,
const uint8_t txData[],
uint8_t rxData[],
uint32_t numTxRxBytes )

◆ no_os_SpiWrite()

adi_hal_Err_e no_os_SpiWrite ( void * devHalCfg,
const uint8_t txData[],
uint32_t numTxBytes )

◆ no_os_TimerClose()

int32_t no_os_TimerClose ( void * devHalCfg)

◆ no_os_TimerInit()

int32_t no_os_TimerInit ( void * devHalCfg)

◆ no_os_TimerOpen()

int32_t no_os_TimerOpen ( void * devHalCfg)

◆ no_os_TimerWait_ms()

adi_hal_Err_e no_os_TimerWait_ms ( void * devHalCfg,
uint32_t time_ms )

◆ no_os_TimerWait_us()

adi_hal_Err_e no_os_TimerWait_us ( void * devHalCfg,
uint32_t time_us )

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_BoardIdentify

adi_hal_Err_e(* adi_hal_BoardIdentify) (char **boardNames, int32_t *numBoards) ( char ** boardNames,
int32_t * numBoards ) = 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_I2cRead

adi_hal_Err_e(* adi_hal_I2cRead) (void *const devHalCfg, const uint8_t txData[], const uint32_t numTxBytes, uint8_t rxData[], const uint32_t numRxBytes) ( void *const devHalCfg,
const uint8_t txData[],
const uint32_t numTxBytes,
uint8_t rxData[],
const uint32_t numRxBytes ) = NULL

◆ adi_hal_I2cWrite

adi_hal_Err_e(* adi_hal_I2cWrite) (void *const devHalCfg, const uint8_t txData[], const uint32_t numTxBytes) ( void *const devHalCfg,
const uint8_t txData[],
const uint32_t numTxBytes ) = NULL

◆ 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)
Definition no_os_platform.c:316

◆ 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)
Definition no_os_platform.c:298

◆ 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)
Definition no_os_platform.c:304

◆ 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)
Definition no_os_platform.c:310

◆ adi_hal_SpiInit

adi_hal_Err_e(* adi_hal_SpiInit) (void *devHalCfg) ( void * devHalCfg) = no_os_SpiInit

◆ 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