TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139564 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57255 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42563 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26933 times)
  10. microSD click (26309 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: 1065 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

PIC32 Memory Statistics

16

The purpose of this tool is to display a chart containing the memory allocation in a PIC32 project.

[Learn More]

DynTFT Color Themes

0

DynTFT Color Themes are a collection of inc files with color constants, usable by DynTFT components.

[Learn More]

Memory Statistics

0

This is a remake of "PIC32 Memory Statistics". In addition to displaying the memory allocation and comparing multiple hex files, this tool provides a simulated memory, which accepts Erase/Write commands, coming from a physical MCU. It is used to avoid overwriting the physical memory and instead, display what would happen to it.

[Learn More]