![]() |
Serial Wombat 18AB Firmware
|
#include <stdint.h>Go to the source code of this file.
Classes | |
| union | _pin_register_t |
| A union representing all the possible pin modes, with meanings for each. More... | |
| struct | _pin_register_t::generic_n |
| A generic descriptor, typically used to access the buffer and mode variables. More... | |
Macros | |
| #define | BYTES_PER_PIN_REGISTER 20 |
| #define | BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
| Awesome way to check structure sizes at build time. More... | |
| #define | USE_BUFFERED_PIN_REGISTER |
| #define | CurrentPinRegister (&pinRegisterBuffer) |
Typedefs | |
| typedef union _pin_register_t | pinRegister_t |
Functions | |
| void | CopyFromArrayToPinBuffer (void) |
| void | CopyFromPinBufferToArray (void) |
| void | SetBuffer (uint8_t pin, uint16_t value) |
| uint16_t | GetBuffer (uint8_t pin) |
| void | SetMode (uint8_t pin, uint8_t mode) |
| uint8_t | GetMode (uint8_t pin) |
Variables | |
| pinRegister_t | PinUpdateRegisters [NUMBER_OF_TOTAL_PINS] |
| pinRegister_t | pinRegisterBuffer |
| #define BUILD_BUG_ON | ( | condition | ) | ((void)sizeof(char[1 - 2*!!(condition)])) |
Awesome way to check structure sizes at build time.
See https://scaryreasoner.wordpress.com/2009/02/28/checking-sizeof-at-compile-time/
| #define BYTES_PER_PIN_REGISTER 20 |
| #define CurrentPinRegister (&pinRegisterBuffer) |
| #define USE_BUFFERED_PIN_REGISTER |
| typedef union _pin_register_t pinRegister_t |
| void CopyFromArrayToPinBuffer | ( | void | ) |
| void CopyFromPinBufferToArray | ( | void | ) |
| uint16_t GetBuffer | ( | uint8_t | pin | ) |
| uint8_t GetMode | ( | uint8_t | pin | ) |
| void SetBuffer | ( | uint8_t | pin, |
| uint16_t | value | ||
| ) |
| void SetMode | ( | uint8_t | pin, |
| uint8_t | mode | ||
| ) |
| pinRegister_t pinRegisterBuffer |
| pinRegister_t PinUpdateRegisters[NUMBER_OF_TOTAL_PINS] |
1.8.17