Functions
usart_serial.c File Reference

USART Serial driver functions. More...

#include "serial.h"
Include dependency graph for usart_serial.c:

Go to the source code of this file.

Functions

status_code_t usart_serial_read_packet (usart_if usart, uint8_t *data, size_t len)
 Receive a sequence of bytes from USART device. More...
 
status_code_t usart_serial_write_packet (usart_if usart, const uint8_t *data, size_t len)
 Send a sequence of bytes to USART device. More...
 

Detailed Description

USART Serial driver functions.

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

Definition in file usart_serial.c.

Function Documentation

◆ usart_serial_read_packet()

status_code_t usart_serial_read_packet ( usart_if  usart,
uint8_t *  data,
size_t  len 
)

Receive a sequence of bytes from USART device.

Receive a sequence of bytes to a USART device.

Parameters
usartBase address of the USART instance.
dataData buffer to write
lenLength of data

Definition at line 68 of file usart_serial.c.

◆ usart_serial_write_packet()

status_code_t usart_serial_write_packet ( usart_if  usart,
const uint8_t *  data,
size_t  len 
)

Send a sequence of bytes to USART device.

Send a sequence of bytes to a USART device.

Parameters
usartBase address of the USART instance.
dataData buffer to read
lenLength of data

Definition at line 48 of file usart_serial.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07