Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
b67f9f36
Commit
b67f9f36
authored
Dec 12, 2010
by
Dean Camera
Browse files
Added new RingBuffer_Peek() function to the lightweight ring buffer headers.
parent
8a7351c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
LUFA/ManPages/ChangeLog.txt
View file @
b67f9f36
...
...
@@ -13,6 +13,7 @@
* - Library Applications:
* - Added new incomplete MIDIToneGenerator project
* - Added ability to write protect Mass Storage disk write operations from the host OS
* - Added new RingBuffer_Peek() function to the lightweight ring buffer headers
*
* <b>Changed:</b>
* - Core:
...
...
LUFA/ManPages/FutureChanges.txt
View file @
b67f9f36
...
...
@@ -34,6 +34,7 @@
* -# Finish StandaloneProgrammer project
* -# Arduino Uno compatible USB-MIDI, USB-HID
* -# Make Webserver project work in RNDIS device mode
* -# Make rescue clock always active on U4, U6 and U7 targets in AVRISP-MKII Clone project
* - Ports
* -# AVR32 UC3B series microcontrollers
* -# Atmel ARM7 series microcontrollers
...
...
Projects/Benito/Lib/LightweightRingBuff.h
View file @
b67f9f36
...
...
@@ -196,5 +196,16 @@
return
Data
;
}
/** Returns the next element stored in the ring buffer, without removing it.
*
* \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
*
* \return Next data element stored in the buffer
*/
static
inline
RingBuff_Data_t
RingBuffer_Peek
(
RingBuff_t
*
const
Buffer
)
{
return
*
Buffer
->
Out
;
}
#endif
Projects/USBtoSerial/Lib/LightweightRingBuff.h
View file @
b67f9f36
...
...
@@ -196,5 +196,16 @@
return
Data
;
}
/** Returns the next element stored in the ring buffer, without removing it.
*
* \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
*
* \return Next data element stored in the buffer
*/
static
inline
RingBuff_Data_t
RingBuffer_Peek
(
RingBuff_t
*
const
Buffer
)
{
return
*
Buffer
->
Out
;
}
#endif
Projects/XPLAINBridge/Lib/LightweightRingBuff.h
View file @
b67f9f36
...
...
@@ -196,5 +196,16 @@
return
Data
;
}
/** Returns the next element stored in the ring buffer, without removing it.
*
* \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
*
* \return Next data element stored in the buffer
*/
static
inline
RingBuff_Data_t
RingBuffer_Peek
(
RingBuff_t
*
const
Buffer
)
{
return
*
Buffer
->
Out
;
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment