TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136659 times)
  2. FAT32 Library (69894 times)
  3. Network Ethernet Library (55915 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41124 times)
  7. GSM click (28970 times)
  8. PID Library (26405 times)
  9. mikroSDK (26342 times)
  10. microSD click (25349 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

FixedFIFO

Rating:

5

Author: VCC

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Category: Communication

Downloaded: 781 times

Followed by: 3 users

License: MIT license  

This library provides a fixed-size FIFO to an application. Users can set the FIFO depth and width. There are also three examples for mikroPascal PRO for PIC, dsPIC/PIC24 and PIC32. Each example implements a USB CDC device and a PC application sends commands to PIC for adding/reading items to/from FIFO.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "FixedFIFO" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "FixedFIFO" changes.

Do you want to report abuse regarding "FixedFIFO".

  • Information
  • Comments (1)

Library Blog

Features:

 - Fixed width and fixed depth

 - Width and depth are user defined as constants

 - FIFO size is limited only by processor architecture and available memory

 - Code can be further optimized for small processors or reduced memory

 - Items can be added to FIFO from one thread and read from another thread

 - Uses static memory allocation

 - Compiler directive for FIFO event handlers (e.g. FIFOFull, FIFOEmpty, OnAdd, OnRemove etc)

 

Requirements / Recommendations:

 - If using interrupts to add/read items to/from FIFO, the event handlers can be used to temporarily switch off interrupts in order to avoid reentrancy or calling adding/reading FIFOs while executing one of them.

 

Limitations:

 - Does not allow reentrancy

ALSO FROM THIS AUTHOR

Peak Programme Meter with LEDs

0

This is an example of a Peak Programme Meter with 2x16 LEDs. The scale is linear in volts, not dB. The integration time is much shorter than the fall time. It is useful to indicate signal clipping. This example follows no standard, it is for demonstration purposes only.

[Learn More]

Build Version Generator

10

Build Version Generator is a tool, which generates code, containing version number and current build date of a mikroPascal / mikroBasic / mikroC project. It is run as a compiler IDE tool.

[Learn More]

DynTFT Color Theme Generator

0

DynTFT Color Theme Generator is an editor for DynTFT color constants. It allows live preview of all supported DynTFT components under different color settings.

[Learn More]