/** \brief Default Layer State
*/
layer_state_t default_layer_state = 0;
/** \brief Default Layer State Set At user Level
*
* Run user code on default layer state change
*/
layer_state_t
/** \brief Default Layer State Set At Keyboard Level
*
* Run keyboard code on default layer state change
*/
layer_state_t
/** \brief Default Layer State Set
*
* Static function to set the default layer state, prints debug info and clears keys
*/
static void
/** \brief Default Layer Print
*
* Print out the hex value of the 32-bit default layer state, as well as the value of the highest bit.
*/
void
/** \brief Default Layer Set
*
* Sets the default layer state.
*/
void
/** \brief Default Layer Or
*
* Turns on the default layer based on matching bits between specifed layer and existing layer state
*/
void
/** \brief Default Layer And
*
* Turns on default layer based on matching enabled bits between specifed layer and existing layer state
*/
void
/** \brief Default Layer Xor
*
* Turns on default layer based on non-matching bits between specifed layer and existing layer state
*/
void
/** \brief Keymap Layer State
*/
layer_state_t layer_state = 0;
/** \brief Layer state set user
*
* Runs user code on layer state change
*/
layer_state_t
/** \brief Layer state set keyboard
*
* Runs keyboard code on layer state change
*/
layer_state_t
/** \brief Layer state set
*
* Sets the layer to match the specifed state (a bitmask)
*/
void
/** \brief Layer clear
*
* Turn off all layers
*/
void
/** \brief Layer state is
*
* Return whether the given state is on (it might still be shadowed by a higher state, though)
*/
bool
/** \brief Layer state compare
*
* Used for comparing layers {mostly used for unit testing}
*/
bool
/** \brief Layer move
*
* Turns on the given layer and turn off all other layers
*/
void
/** \brief Layer on
*
* Turns on given layer
*/
void
/** \brief Layer off
*
* Turns off given layer
*/
void
/** \brief Layer invert
*
* Toggle the given layer (set it if it's unset, or unset it if it's set)
*/
void
/** \brief Layer or
*
* Turns on layers based on matching bits between specifed layer and existing layer state
*/
void
/** \brief Layer and
*
* Turns on layers based on matching enabled bits between specifed layer and existing layer state
*/
void
/** \brief Layer xor
*
* Turns on layers based on non-matching bits between specifed layer and existing layer state
*/
void
/** \brief Layer debug printing
*
* Print out the hex value of the 32-bit layer state, as well as the value of the highest bit.
*/
void
/** \brief source layer cache
*/
uint8_t source_layers_cache = ;
/** \brief update source layers cache
*
* Updates the cached keys when changing layers
*/
void
/** \brief read source layers cache
*
* reads the cached keys stored when the layer was changed
*/
uint8_t
/** \brief Store or get action (FIXME: Needs better summary)
*
* Make sure the action triggered when the key is released is the same
* one as the one triggered on press. It's important for the mod keys
* when the layer is switched after the down event but before the up
* event as they may get stuck otherwise.
*/
action_t
/** \brief Layer switch get layer
*
* Gets the layer based on key info
*/
uint8_t
/** \brief Layer switch get layer
*
* Gets action code based on key position
*/
action_t