|
librfn
An ad-hoc utility library
|
Console descriptor. More...
#include <console.h>
Data Fields | |
| fibre_t | fibre |
| FILE * | out |
| char | ringbuf [16] |
| ringbuf_t | ring |
| union { | |
| char buf [SCRATCH_SIZE] | |
| uint8_t u8 [SCRATCH_SIZE] | |
| uint16_t u16 [SCRATCH_SIZE/2] | |
| uint32_t u32 [SCRATCH_SIZE/4] | |
| void * p [SCRATCH_SIZE/4] | |
| } | scratch |
| char * | bufp |
| int | argc |
| char * | argv [4] |
| const console_cmd_t * | cmd |
| pt_t | pt |
Console descriptor.
This is a relatively large structure (164 bytes on a 32-bit machine) due to the integrated scratch array.
| char buf[SCRATCH_SIZE] |
| const console_cmd_t* cmd |
| void* p[SCRATCH_SIZE/4] |
| union { ... } scratch |
Scratch buffer used by commands to store state.
| uint16_t u16[SCRATCH_SIZE/2] |
| uint32_t u32[SCRATCH_SIZE/4] |
| uint8_t u8[SCRATCH_SIZE] |
1.8.10