TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139068 times)
  2. FAT32 Library (71594 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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: 1018 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

10

DynTFT is a set of visual components, inspired by Delphi's VCL. These components are compilable by mikroPascal, Delphi and FreePascal, allowing faster designing and debugging of the UI part of an application. The API features a runtime component registration, to make sure that users won't have to deal with internal handling of mouse/touch events.

[Learn More]