Skip to content

File main.cpp

FileList > DmaReceive-SerialEcho > main.cpp

Go to the source code of this file

  • #include "daisy_seed.h"

Public Attributes

Type Name
DaisySeed hardware
const uint32_t kUartBaudRate = 31250
const size_t kUartBufferSize = 256
const auto kUartPeripheral = UartHandler::Config::Peripheral::USART\_1
const auto kUartRxPin = seed::D14
FIFO< uint8_t, kUartBufferSize > tx_queue
uint8_t uart_buffer

Public Functions

Type Name
void RxCallback (uint8_t * data, size_t size, void * context, UartHandler::Result res)
int main ()

Public Attributes Documentation

variable hardware

DaisySeed hardware;

Daisy hardware interface


variable kUartBaudRate

const uint32_t kUartBaudRate;

Baud rate for UART serial


variable kUartBufferSize

const size_t kUartBufferSize;

size of the Rx buffer in bytes


variable kUartPeripheral

const auto kUartPeripheral;

UART Peripheral used


variable kUartRxPin

const auto kUartRxPin;

Pin used for Rx


variable tx_queue

FIFO<uint8_t, kUartBufferSize> tx_queue;

Queue of bytes to transmit to the logger


variable uart_buffer

uint8_t uart_buffer[kUartBufferSize];

uart buffer


Public Functions Documentation

function RxCallback

void RxCallback (
    uint8_t * data,
    size_t size,
    void * context,
    UartHandler::Result res
) 

Callback that fires whenever an IDLE interrupt occurs, or when the buffer is more than half full


function main

int main () 


The documentation for this class was generated from the following file external-docs/libDaisy/examples/uart/DmaReceive-SerialEcho/main.cpp