Argon RTOS  1.3.0
Tiny embedded real-time kernel
Ar::Channel Class Reference

#include <ar_classes.h>

+ Inheritance diagram for Ar::Channel:

Description

+ Collaboration diagram for Ar::Channel:

Public Member Functions

 Channel ()
 Default constructor.
 
 Channel (const char *name, uint32_t width=0)
 Constructor.
 
 ~Channel ()
 Destructor.
 
ar_status_t init (const char *name, uint32_t width=0)
 Channel initialiser.
 
ar_status_t receive (void *value, uint32_t timeout=kArInfiniteTimeout)
 Receive from channel.
 
ar_status_t send (const void *value, uint32_t timeout=kArInfiniteTimeout)
 Send to channel.
 

Additional Inherited Members

- Public Attributes inherited from ar_channel_t
ar_list_t m_blockedReceivers
 List of blocked receiver threads.
 
ar_list_t m_blockedSenders
 List of blocked sender threads.
 
const char * m_name
 Name of the channel.
 
uint32_t m_width
 Size in bytes of the channel's data.