whatnick / ATM90E26_Arduino

Demo Arduino code to test the ATM90E26 breakout
MIT License
57 stars 34 forks source link

A question - #9

Open kkmehta03 opened 6 years ago

kkmehta03 commented 6 years ago

Hi,

Your code is great.. It's simple and easily understandable. I'm trying to make a device driver using your code as a guide. Could you please tell me what this line means? ATM90E26_UART(Stream* UART); It's in your UART interface, header file. Is it a constructor? It's just the one thing I don't understand in your code. Thanks in advance!

whatnick commented 5 years ago

This is a generic way of passing an arbitrary UART by pointer rather than creating a specific hardware or software UART.