BSB Developer Docs
Loading...
Searching...
No Matches
ble_incoming_nwp_event.h File Reference

Logic of creation of incoming nwp events used by ble_incoming_nwp_event_processor.h when spawning new event on nwp callback calls. More...

#include "ble_incoming_nwp_event_type_enum.h"
#include <furi.h>

Go to the source code of this file.

Data Structures

struct  BleIncomingNwpEvent
 

Functions

BleIncomingNwpEvent * ble_incoming_nwp_event_alloc (BleIncomingNwpEventType type, size_t data_size, void *data)
 Allocates incoming event with mentioned parameters.
 
void ble_incoming_nwp_event_free (BleIncomingNwpEvent *instance)
 Free event.
 

Detailed Description

Logic of creation of incoming nwp events used by ble_incoming_nwp_event_processor.h when spawning new event on nwp callback calls.

Function Documentation

◆ ble_incoming_nwp_event_alloc()

BleIncomingNwpEvent * ble_incoming_nwp_event_alloc ( BleIncomingNwpEventType type,
size_t data_size,
void * data )

Allocates incoming event with mentioned parameters.

Parameters
[in]typeone of possible types, described in ble_incoming_nwp_event_type_enum.h
[in]data_sizesize of incoming data received from nwp
[in]datapayload received from nwp
Returns
pointer to event for future use

◆ ble_incoming_nwp_event_free()

void ble_incoming_nwp_event_free ( BleIncomingNwpEvent * instance)

Free event.

Parameters
[in]instancepointer to event instance to be freed