Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_host.c File Reference

Debug printing functions for Cascoda API code and applications. More...

#include <assert.h>
#include <stdint.h>
#include <sys/time.h>
#include <time.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_os.h"
Include dependency graph for cascoda_host.c:

Macros

#define MAX_PUTC_CHARS   (128)
 Max characters that can be buffered before being sent upstream. More...
 

Functions

int putchar (int OutChar)
 putchar override for printf messages More...
 
int fputc (int c, void *stream)
 

Variables

uint8_t PutcCount = 0
 Current length of PutcBuffer. More...
 
uint8_t PutcBuffer [MAX_PUTC_CHARS]
 Debug message buffer. More...
 

Detailed Description

Debug printing functions for Cascoda API code and applications.

Used for binding to the system's printf functions etc.

Macro Definition Documentation

◆ MAX_PUTC_CHARS

#define MAX_PUTC_CHARS   (128)

Max characters that can be buffered before being sent upstream.

Function Documentation

◆ fputc()

int fputc ( int  c,
void *  stream 
)

◆ putchar()

int putchar ( int  OutChar)

putchar override for printf messages

Writes characters to PutcBuffer until a newline is received, at which point HOST_flush is called.

Parameters
OutChar- Character to put in output buffer
Returns
Character written to output buffer

Variable Documentation

◆ PutcBuffer

uint8_t PutcBuffer[MAX_PUTC_CHARS]

Debug message buffer.

◆ PutcCount

uint8_t PutcCount = 0

Current length of PutcBuffer.