# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/common/src/co_ring.h File Reference

definition of co_ring_array structure and related macros. More...

`#include "co_int.h"`
`#include "co_bool.h"`
`#include <stddef.h>`
`#include "compiler.h"`
`#include "dbg_assert.h"`

Go to the source code of this file.

## Data Structures
struct | co_ring
| Structure holds the information related to the ring. More...
## Functions
__INLINE void | co_ring_init (struct co_ring *ring, uint8_t max_count)
| This function initializes the co-ring array structure.
__INLINE void | co_ring_write (struct co_ring *ring)
| Write an element onto the ring.
__INLINE void | co_ring_read (struct co_ring *ring)
| Read an element from the ring.
__INLINE bool | co_ring_empty (struct co_ring *ring)
| Check if the ring is empty.
__INLINE bool | co_ring_full (struct co_ring *ring)
| Check if the ring is full.

## Detailed Description

definition of co_ring_array structure and related macros.

Copyright (C) RivieraWaves 2011-2019

Definition in file co_ring.h.