TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 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 (139256 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42404 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 1040 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]

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]

File Transfer To PIC

0

This is a simple example of file transfer from a desktop client to a PIC32 server, using mikroMedia for PIC32MX7+ board and mikroMedia+ shield for PIC32MX7.

[Learn More]