Serial Wombat 18AB Firmware
Public Attributes | List of all members
executive_settings_n Struct Reference

A type which allows multiple boolean variables to be packed into a single byte.
More...

#include <types.h>

Public Attributes

uint8 run_foreground:1
 This bit is set by the timer interrupt and cleared when execution begins. More...
 
uint8 throughput:1
 This bit enables the boot pin to become an output and change states to allow tracking of the foreground task and low priority interrupts with an oscilloscope. More...
 
uint8 buffer_dirty:1
 This bit tells the pin executive loop that the executed pin code for the current pin made changes in the pin context which need to be saved back to memory. More...
 
uint8 idle_enabled:1
 This bit tells the executive to go into hardware idle or sleep on completion of pin processing. This is enabled by the user and is poorly tested at this point. More...
 

Detailed Description

A type which allows multiple boolean variables to be packed into a single byte.

This is done to save ram and to improve throughput, as single bit operations are very fast on the 18F series of PIC microcontrollers No operation requires the bits in this variable to be in a particular order, so the ANSI compiler variation of bit position in a byte doesn't matter.

Member Data Documentation

◆ buffer_dirty

uint8 executive_settings_n::buffer_dirty

This bit tells the pin executive loop that the executed pin code for the current pin made changes in the pin context which need to be saved back to memory.

◆ idle_enabled

uint8 executive_settings_n::idle_enabled

This bit tells the executive to go into hardware idle or sleep on completion of pin processing. This is enabled by the user and is poorly tested at this point.

◆ run_foreground

uint8 executive_settings_n::run_foreground

This bit is set by the timer interrupt and cleared when execution begins.

◆ throughput

uint8 executive_settings_n::throughput

This bit enables the boot pin to become an output and change states to allow tracking of the foreground task and low priority interrupts with an oscilloscope.