UART
Questo modulo include l'astrazione della piattaforma per la comunicazione UART.
Sommario
Funzioni | |
---|---|
otPlatUartDisable (void) | Disabilita l'UART. |
otPlatUartEnable (void) | Abilita l'UART. |
otPlatUartFlush (void) | Svuota il buffer di trasmissione in uscita e attendi che i dati vengano inviati. |
otPlatUartReceived (const uint8_t *aBuf, uint16_t aBufLength) | void Il driver UART chiama questo metodo per notificare a OpenThread che i byte sono stati ricevuti. |
otPlatUartSend (const uint8_t *aBuf, uint16_t aBufLength) | Invia byte tramite l'UART. |
otPlatUartSendDone (void) | void Il driver UART chiama questo metodo per notificare a OpenThread che i byte richiesti sono stati inviati. |
Funzioni
otPlatUartDisable
otError otPlatUartDisable( void )
Disabilita l'UART.
Dettagli | |||||
---|---|---|---|---|---|
Valori restituiti |
|
otPlatUartEnable
otError otPlatUartEnable( void )
Abilita l'UART.
Dettagli | |||||
---|---|---|---|---|---|
Valori restituiti |
|
otPlatUartFlush
otError otPlatUartFlush( void )
Svuota il buffer di trasmissione in uscita e attendi che i dati vengano inviati.
Viene chiamato quando l'interfaccia CLI UART ha un buffer pieno ma desidera comunque inviare più dati.
Dettagli | |||||||
---|---|---|---|---|---|---|---|
Valori restituiti |
|
otPlatUartReceived
void otPlatUartReceived( const uint8_t *aBuf, uint16_t aBufLength )
Il driver UART chiama questo metodo per notificare a OpenThread che i byte sono stati ricevuti.
Dettagli | |||||
---|---|---|---|---|---|
Parametri |
|
otPlatUartSend
otError otPlatUartSend( const uint8_t *aBuf, uint16_t aBufLength )
Invia byte tramite l'UART.
Dettagli | |||||
---|---|---|---|---|---|
Parametri |
| ||||
Valori restituiti |
|
otPlatUartSendDone
void otPlatUartSendDone( void )
Il driver UART chiama questo metodo per notificare a OpenThread che i byte richiesti sono stati inviati.