Microchip® Advanced Software Framework

picouart.c File Reference

PICOUART driver for SAM.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "picouart.h"
#include "sysclk.h"
#include "sleepmgr.h"

Macros

#define SOURCE_CHARACTER_MATCH_MODE   3
 
#define SOURCE_FULL_FRAME_MODE   2
 
#define SOURCE_NONE   0
 
#define SOURCE_START_BIT_MODE   1
 

Functions

void picouart_disable (struct picouart_dev_inst *const dev_inst)
 Disable the PICOUART. More...
 
void picouart_enable (struct picouart_dev_inst *const dev_inst)
 Enable the PICOUART. More...
 
void picouart_get_config_defaults (struct picouart_config *config)
 Load a pre-defined configuration into the configuration structure. More...
 
status_code_t picouart_init (struct picouart_dev_inst *const dev_inst, Picouart *hw_dev, struct picouart_config *config)
 Initializes the PICOUART module, based on a config struct. More...
 
bool picouart_is_data_ready (struct picouart_dev_inst *const dev_inst)
 Check the data ready status of PICOUART. More...
 
bool picouart_is_enabled (struct picouart_dev_inst *const dev_inst)
 Check the enable status of PICOUART. More...
 
status_code_t picouart_read (struct picouart_dev_inst *const dev_inst, uint8_t *result)
 Get the current RHR value. More...
 
status_code_t picouart_set_config (struct picouart_dev_inst *const dev_inst, struct picouart_config *config)
 Configures the PICOUART module, based on a config struct. More...
 

#define SOURCE_CHARACTER_MATCH_MODE   3
#define SOURCE_FULL_FRAME_MODE   2
#define SOURCE_NONE   0
#define SOURCE_START_BIT_MODE   1