Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_wait.c File Reference

Helper 'wait' framework for blocking functions. More...

#include <stdio.h>
#include <string.h>
#include "cascoda-bm/cascoda_dispatch.h"
#include "cascoda-bm/cascoda_interface_core.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_time.h"
#include "mac_messages.h"
Include dependency graph for cascoda_wait.c:

Functions

ca_error WAIT_Callback (uint8_t aCommandId, uint32_t aTimeoutMs, void *aCallbackContext, struct ca821x_dev *pDeviceRef)
 Wait for an asynchronous callback to be triggered. More...
 
ca_error WAIT_CallbackSwap (uint8_t aCommandId, ca821x_generic_callback aCallback, uint32_t aTimeoutMs, void *aCallbackContext, struct ca821x_dev *pDeviceRef)
 Wait for an asynchronous callback to be triggered, with a given callback swapped in. More...
 
void * WAIT_GetContext (void)
 Get the callback context from within a callback being waited for. More...
 
void WAIT_ms (u32_t ticks)
 

Detailed Description

Helper 'wait' framework for blocking functions.

Function Documentation

◆ WAIT_ms()

void WAIT_ms ( u32_t  ticks)