![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Functions | |
RAKOneWireSerial (uint32_t pin, rak_onewire_serial_recv_cb callback) | |
void | begin (uint32_t baud, RAK_SERIAL_MODE mode=RAK_DEFAULT_MODE) |
size_t | write (const uint8_t *buf, size_t size) |
int | available (void) |
int | read (void) |
void | end (void) |
RAKOneWireSerial | ( | uint32_t | pin, |
rak_onewire_serial_recv_cb | callback | ||
) |
pin | the pin number |
callback | the callback for receiving data |
void begin | ( | uint32_t | baud, |
RAK_SERIAL_MODE | mode = RAK_DEFAULT_MODE |
||
) |
baud | The baudrate to set for the Serial |
mode(optinal) | The mode that use UART in different way (if not assigned, RAK_DEFAULT_MODE is chosen) List: RAK_AT_MODE RAK_API_MODE RAK_CUSTOM_MODE RAK_DEFAULT_MODE |
size_t write | ( | const uint8_t * | buf, |
size_t | size | ||
) |
buf | an array to send as a series of bytes |
size | the number of bytes to be sent from the array |
int available | ( | void | ) |
the | number of bytes available for reading from the specified one wire serial port(Type: int) |
int read | ( | void | ) |
-1 | Read fail,get nothing from the specified one wire serial port |
void end | ( | void | ) |