TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (352 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 (136763 times)
  2. FAT32 Library (69973 times)
  3. Network Ethernet Library (55944 times)
  4. USB Device Library (46269 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41182 times)
  7. GSM click (28987 times)
  8. PID Library (26414 times)
  9. mikroSDK (26369 times)
  10. microSD click (25380 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: 786 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

MQTTClient

0

MQTT Client library.

[Learn More]

All Tools

5

All Tools is an application, which allows more than 10 user tools to be started from a mikro IDE. It is a menu-based design, as opposed to a list of buttons, thus taking only one button space on the IDE. For each installed tool, two more applications can be executed, one before the tool, and the other, after the 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]