nrfxlib API 2.7.99
Loading...
Searching...
No Matches
Modem library OS glue

Macros

#define NRF_MODEM_OS_NO_WAIT   0
 
#define NRF_MODEM_OS_FOREVER   -1
 
#define NRF_MODEM_OS_NUM_SEM_REQUIRED   7
 
#define NRF_MODEM_OS_NUM_MUTEX_REQUIRED   1
 

Enumerations

enum  log_level {
  NRF_MODEM_LOG_LEVEL_NONE , NRF_MODEM_LOG_LEVEL_ERR , NRF_MODEM_LOG_LEVEL_WRN , NRF_MODEM_LOG_LEVEL_INF ,
  NRF_MODEM_LOG_LEVEL_DBG
}
 

Functions

void nrf_modem_os_init (void)
 Initialize the glue layer.
 
void nrf_modem_os_shutdown (void)
 Deinitialize the glue layer.
 
void * nrf_modem_os_shm_tx_alloc (size_t bytes)
 Allocate a buffer on the TX area of shared memory.
 
void nrf_modem_os_shm_tx_free (void *mem)
 Free a shared memory buffer in the TX area.
 
void * nrf_modem_os_alloc (size_t bytes)
 Allocate a buffer on the library heap.
 
void nrf_modem_os_free (void *mem)
 Free a memory buffer in the library heap.
 
void nrf_modem_os_busywait (int32_t usec)
 Busy wait.
 
int32_t nrf_modem_os_timedwait (uint32_t context, int32_t *timeout)
 Put a thread to sleep for a specific time or until an event occurs.
 
void nrf_modem_os_event_notify (uint32_t context)
 Notify the application that an event has occurred.
 
int nrf_modem_os_sleep (uint32_t timeout)
 Put a thread to sleep for a specific amount of time.
 
void nrf_modem_os_errno_set (int errno_val)
 Set errno.
 
bool nrf_modem_os_is_in_isr (void)
 Check if executing in interrupt context.
 
int nrf_modem_os_sem_init (void **sem, unsigned int initial_count, unsigned int limit)
 Initialize a semaphore.
 
void nrf_modem_os_sem_give (void *sem)
 Give a semaphore.
 
int nrf_modem_os_sem_take (void *sem, int timeout)
 Take a semaphore.
 
unsigned int nrf_modem_os_sem_count_get (void *sem)
 Get a semaphore's count.
 
int nrf_modem_os_mutex_init (void **mutex)
 Initialize a mutex.
 
int nrf_modem_os_mutex_lock (void *mutex, int timeout)
 Lock a mutex.
 
int nrf_modem_os_mutex_unlock (void *mutex)
 Unlock a mutex.
 
void nrf_modem_os_log (int level, const char *fmt,...)
 Generic logging procedure.
 
void nrf_modem_os_logdump (int level, const char *str, const void *data, size_t len)
 Logging procedure for dumping hex representation of object.
 

Detailed Description