demo/uart_blaster/uart_blaster_internal.h

/*******************************************************************************
* # License
* Copyright 2019 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#pragma once
#include "gos.h"
#include "nvm/nvm_settings.h"
#define BLASTER_ERROR(msg, ...) uart_blaster_log(UART_BLASTER_LOG_LEVEL_ERROR, "[BLASTER] " msg, ## __VA_ARGS__)
#define BLASTER_WARN(msg, ...) uart_blaster_log(UART_BLASTER_LOG_LEVEL_WARN, "[BLASTER] " msg, ## __VA_ARGS__)
#define BLASTER_INFO(msg, ...) uart_blaster_log(UART_BLASTER_LOG_LEVEL_INFO, "[BLASTER] " msg, ## __VA_ARGS__)
#define BLASTER_DEBUG(msg, ...) uart_blaster_log(UART_BLASTER_LOG_LEVEL_DEBUG, "[BLASTER] " msg, ## __VA_ARGS__)
extern uart_blaster_settings_t *blaster_settings;
void commands_print_help(void);
gos_result_t uart_blaster_init(void);
gos_result_t uart_blaster_start(void);
gos_result_t uart_blaster_stop(void);
gos_result_t uart_blaster_pause(void);
void uart_blaster_log(uart_blaster_log_level_t level, const char *cmd, ...);