User Tools

Site Tools


en-us_commands:reference:filo

This is an old revision of the document!


Table of Contents

FILO()

FILO() outputs the last stored 16-bit data first.

FILO command operation flow

bool FILO(uint8_t filo_id, bool IN, bool OUT, uint16_t input, uint16_t &output, uint8_t size, bool reset = false)

Commands

Command Arguments Return Value Operation
FILO(filo_id, IN, OUT, input, output, size, reset) uint8_t filo_id
bool IN — Store input on the rising edge
bool OUT — Output on the rising edge
uint16_t input — Word to store
uint16_t &output — Reference variable receiving the output
uint8_t size — Buffer size
bool reset = false — Reset the buffer
bool Outputs the last stored 16-bit data first.

Example

uint16_t filoOut;
FILO(0, digitalRead(0), digitalRead(1), D[0], filoOut, 10);

Precautions

IN, OUT, CU and CD act on rising edges. Use a unique id for each counter or buffer, and keep size to the required minimum.

← Built-in Command List

en-us_commands/reference/filo.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki