openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
Loading...
Searching...
No Matches
cherry.h File Reference

— Cherry core (context + device-capabilities) interface. More...

#include "cherry_common.h"
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for cherry.h:

Go to the source code of this file.

Data Structures

struct  cherry_core_event_device_capabilities
 UWBS capability container reported by the peer during device discovery; only the CCC capabilities member is consulted. More...
 

Typedefs

typedef void(* cherry_core_cb_t) (struct cherry_core_event *event, void *user_data)
 Callback type for core (non-session) Cherry notification events.
 

Enumerations

enum  cherry_err
 Status codes returned across the Cherry / CCC seam.
 

Functions

struct cherrycherry_create (const char *device, cherry_core_cb_t core_cb, void *user_data)
 Allocate a Cherry context (NULL on allocation failure).
 
void cherry_destroy_sync (struct cherry *ctx)
 Synchronously release a Cherry context and its resources.
 

Detailed Description

— Cherry core (context + device-capabilities) interface.

Function Documentation

◆ cherry_create()

struct cherry * cherry_create ( const char *  device,
cherry_core_cb_t  core_cb,
void *  user_data 
)

Allocate a Cherry context (NULL on allocation failure).

Allocate a Cherry context (NULL on allocation failure).

Parameters
deviceDevice parameter (unused).
core_cbCore callback (never invoked).
user_dataUser data to store in the context.
Returns
Cherry context pointer, or null if allocation fails.

◆ cherry_destroy_sync()

void cherry_destroy_sync ( struct cherry ctx)

Synchronously release a Cherry context and its resources.

Parameters
ctxCherry context to destroy.

Synchronously release a Cherry context and its resources.