QP/C
Functions
qs_byte.c File Reference

QS_getByte() implementation. More...

#include "qs_pkg.h"

Go to the source code of this file.

Functions

uint16_t QS_getByte (void)
 Byte-oriented interface to the QS data buffer.

Detailed Description

QS_getByte() implementation.

Definition in file qs_byte.c.


Function Documentation

uint16_t QS_getByte ( void  )

Byte-oriented interface to the QS data buffer.

This function delivers one byte at a time from the QS data buffer. The function returns the byte in the least-significant 8-bits of the 16-bit return value if the byte is available. If no more data is available at the time, the function returns QS_EOD (End-Of-Data).

Note:
QS_getByte() is NOT protected with a critical section.

Definition at line 37 of file qs_byte.c.

References QS_end_, QS_EOD, QS_PTR_AT_, QS_tail_, and QS_used_.