![]() |
Serial Wombat 18AB Firmware
|
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | uint8 unsigned char |
#define | int8 signed char |
#define | uint16 unsigned short |
#define | int16 signed short |
#define | uint32 unsigned int |
#define | int32 signed int |
#define | uint24 unsigned long |
#define | int24 signed long |
#define | near |
#define | far |
#define | rom |
Typedefs | |
typedef union mixed32_n | mixed32_t |
Union of 32 bit types. Note that on the 18F a RAM pointer is 16 bits, so it's not included here. More... | |
typedef union mixed24_n | mixed24_t |
Union of 24 bit types. Specific to C18 compiler. More... | |
typedef union mixed16_n | mixed16_t |
Union of 16 bit types. Also includes pointers for the 18F. More... | |
typedef union _pin_register_t | pin_register_t |
A union representing all the possible pin modes, with meanings for each. More... | |
typedef union _pin_register2_t | pin_register2_t |
typedef struct executive_settings_n | executive_settings_t |
A type which allows multiple boolean variables to be packed into a single byte. More... | |
typedef struct communication_settings_n | comm_settings_t |
typedef struct queue_flags_bits_n | queue_flags_bits_t |
typedef union queue_flags_union_n | queue_flags_t |
typedef struct sin_data_n | sin_data_t |
typedef struct test_data_n | test_data_t |
Functions | |
union generic_queue_n | __attribute__ ((packed)) queue_header_t |
#define far |
#define int16 signed short |
#define int24 signed long |
#define int32 signed int |
#define int8 signed char |
#define near |
#define rom |
#define uint16 unsigned short |
#define uint24 unsigned long |
#define uint32 unsigned int |
#define uint8 unsigned char |
typedef struct communication_settings_n comm_settings_t |
typedef struct executive_settings_n executive_settings_t |
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.
Union of 32 bit types. Note that on the 18F a RAM pointer is 16 bits, so it's not included here.
typedef union _pin_register2_t pin_register2_t |
typedef union _pin_register_t pin_register_t |
A union representing all the possible pin modes, with meanings for each.
Each pin mode can have up to 8 bytes of context data, plus 2 bytes for public data, a byte for the mode, 4 bytes for software-driven hardware emulation (such as PWM). An additional byte is undefined, for a total of 16 bytes. This may turn out to be more than 16 bytes on platforms that don't support the proprietary int24 type. The size must remain 16 bytes because of assembly routines that do the copy from the array of pin contexts to the directly accessible tp variable
typedef struct queue_flags_bits_n queue_flags_bits_t |
typedef union queue_flags_union_n queue_flags_t |
typedef struct sin_data_n sin_data_t |
typedef struct test_data_n test_data_t |
struct ram_string_queue_n __attribute__ | ( | (packed) | ) |
uint8 addressh |
uint8 addressl |
uint8 bitaccess |
uint8 direction |
uint8 escapeval |
queue_flags_t flags |
uint16 flashaddr |
uint16 head |
uint16 lastentry |
uint16 lastlastval |
uint16 lastval |
uint8 leading1 |
uint8 leading2 |
uint8 leading_space |
uint8 leading_zero |
uint8 mode |
uint8 pad |
uint16 queuelength |
uint16 queuesize |
uint8 reserved |
uint8 trailing1 |
uint8 trailing2 |
uint8 type |
uint8 use_leading1 |
uint8 use_leading2 |
uint8 use_trailing1 |
uint8 use_trailing2 |