PebbleOS v4.45.0-179-g439c45a48
Loading...
Searching...
No Matches
console.h File Reference
#include <stddef.h>
#include <stdint.h>

Macros

#define PBL_CONSOLE_FRAME_MTU   512
 Largest frame payload, in bytes.
 
#define PBL_CONSOLE_CHANNEL_PP   'P'
 Frame channel of the Pebble protocol.
 

Functions

void pbl_console_enable_prompt (void)
 Start taking input, once the system can handle commands.
 
void pbl_console_lock (void)
 Hold other users of the port back, recursively.
 
void pbl_console_unlock (void)
 
void pbl_console_putchar (char c)
 Write a character to the port without waiting for it to go out, without taking the lock.
 
void pbl_console_flush (void)
 Wait for what was written to go out.
 
void pbl_console_write_raw (const char *data, size_t len)
 Write to the port without taking the lock, for use in fault handlers and between pbl_console_log_begin() and pbl_console_log_end().
 
void pbl_console_write (const char *data, size_t len)
 Write to the port under the lock.
 
void pbl_console_log_begin (void)
 Start a log line, moving the shell's input line out of the way.
 
void pbl_console_log_end (void)
 End a log line, bringing the shell's input line back.
 
void pbl_console_set_rx_enabled (bool enabled)
 
void pbl_console_frame_send (char channel, uint8_t seq, const void *data, size_t len)
 Send a frame.