MOS Source Code
Loading...
Searching...
No Matches
raw_decode.c File Reference
#include <stdio.h>
#include <string.h>
#include <pb_decode.h>
#include "test_helpers.h"
+ Include dependency graph for raw_decode.c:

Go to the source code of this file.

Macros

#define _ISOC99_SOURCE   1
 
#define HISTORY_LEN   32
 

Functions

bool callback (pb_istream_t *stream, uint8_t *buf, size_t count)
 
void print_history (int position)
 
bool raw_decode (pb_istream_t *stream, const char *indent)
 
int main ()
 

Variables

static pb_byte_t g_history [32]
 
static int g_position
 

Macro Definition Documentation

◆ _ISOC99_SOURCE

#define _ISOC99_SOURCE   1

Definition at line 5 of file raw_decode.c.

◆ HISTORY_LEN

#define HISTORY_LEN   32

Definition at line 12 of file raw_decode.c.

Referenced by callback(), and print_history().

Function Documentation

◆ callback()

bool callback ( pb_istream_t * stream,
uint8_t * buf,
size_t count )

Definition at line 17 of file raw_decode.c.

Referenced by main().

+ Here is the call graph for this function:

◆ print_history()

void print_history ( int position)

Definition at line 45 of file raw_decode.c.

Referenced by raw_decode().

◆ raw_decode()

bool raw_decode ( pb_istream_t * stream,
const char * indent )

Definition at line 62 of file raw_decode.c.

Referenced by main(), and raw_decode().

+ Here is the call graph for this function:

◆ main()

int main ( void )

Definition at line 182 of file raw_decode.c.

+ Here is the call graph for this function:

Variable Documentation

◆ g_history

pb_byte_t g_history[32]
static

Definition at line 13 of file raw_decode.c.

Referenced by callback(), and print_history().

◆ g_position

int g_position
static

Definition at line 14 of file raw_decode.c.

Referenced by callback(), print_history(), and raw_decode().