Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
common.h File Reference
#include <stdint.h>
#include <string.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define NULL_CHECK(x)
 Macro for checking argument for NULL. Macro will call return with the status STATUS_NULL_ARGUMENT.
 
#define VERIFY_VALID_ARG(is_valid)
 Macro for verifying that the provided argumets is valid. It will cause the exterior function to return an error code if it is not STATUS_INVALID_ARGUMENT.
 
#define HW_RETURN_IF(err_cond, err)
 Macro for verifying any boolean condition and returning status if condition failed.
 

Typedefs

typedef void(* generic_cb_t) (void)
 
typedef generic_cb_t irq_handler_t
 
typedef void(* async_drdy_cb_t) (void *data, uint32_t data_size)
 Base async data ready callback type.
 
typedef enum status_e status_t
 

Enumerations

enum  status_e {
  STATUS_SUCCESS , STATUS_ALREADY_IN_MODE , STATUS_HARDWARE_ERROR , STATUS_UNSPECIFIED_ERROR ,
  STATUS_INVALID_ARGUMENT , STATUS_NULL_ARGUMENT , STATUS_BUSY , STATUS_UNAVAILABLE ,
  STATUS_NOT_SUPPORTED , STATUS_TIMEOUT
}