Microchip® Advanced Software Framework

event_mem.c File Reference

Event mechanism.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

#include <stdint.h>
#include <stdbool.h>
#include "string.h"
#include "memory.h"
#include "event_mem.h"
#include "bm_application_mode.h"

Functions

event_status_t ble_event_get (event_t *event_param)
 
bool event_fifo_empty (void)
 
bool event_fifo_full (void)
 
bool event_fifo_init (event_t *event_mem, uint16_t event_mem_size)
 
event_status_t event_fifo_read (event_t *event)
 
event_status_t event_fifo_write (event_t *event)
 
event_status_t interface_event_get (void)
 

Variables

static event_fifo_t event_fifo
 

bool event_fifo_empty ( void  )
bool event_fifo_full ( void  )
bool event_fifo_init ( event_t event_mem,
uint16_t  event_mem_size 
)

event_fifo_t event_fifo
static
Initial value:
=
{
.buffer = NULL,
.size = 0,
.head = 0,
.tail = 0,
.wrap_flag = false,
}
#define NULL
Definition: nm_bsp.h:64