Serial communication - constructor parameters definition?

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Vaclav
Posts: 11
Joined: Mon Feb 16, 2015 4:29 am

Serial communication - constructor parameters definition?

Sat Apr 25, 2015 4:42 pm

I hope these questions belongs here, if not just ignore it. 

I am looking into classes processing serial data.
Basically how is serial communication done in Arduino Due - ARM Sam "version".

I have two questions 
1. Where do I find descriptions of one of the derivatives of HardwareSerial class constructor parameters? I have been trying to find some sample code, but so far no luck.
( I do understand the function of RingBuffer, but like to know the rest of it )

Code: Select all

UARTClass(Uart* pUart, IRQn_Type dwIrq, uint32_t dwId, RingBuffer* pRx_buffer, RingBuffer* pTx_buffer);
A link to some code which actually comments serial classes would be sufficient, does not have to be Arduino code. 

2. This one is silly - I know what serial asynchronous receiver transmitter hardware does, but cannot grasp the distinction between UART  and USART as applied to
SAM 3E8X hardware. I guess I am looking for definition AKA who is on first hierarchy.
Cheers 
Vaclav 
Vaclav
Posts: 11
Joined: Mon Feb 16, 2015 4:29 am

Re: Serial communication - constructor parameters definition

Sat Apr 25, 2015 6:07 pm

Checked out data sheet and answered the second question myself. 
Told ya it was silly!

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests