Usage of all declared serial interfaces.
Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | UPPER_BYTE_OFFSET 3 |
Functions | |
bool | bootGetChar (uint8_t *p, bool flag) |
Read byte from interface. More... | |
bool | bootScanInterfaces (void) |
Perform search interface activity and handshake message. More... | |
void | bootSetChar (uint16_t len, uint8_t *p) |
Write byte to interface. More... | |
void | bootUnInitSerializer (void) |
Clear interface setting. More... | |
Variables | |
static uint8_t | currentInterface |
static SerialInterface_t | serialInterface [] |
#define UPPER_BYTE_OFFSET 3 |
Referenced by bootScanInterfaces().
Read byte from interface.
[out] | p | - pointer to data buffer; |
[in] | flag | - flag about unlimited or limited reading time. |
References currentInterface, and SerialInterface_t::getByte.
Referenced by srecParser(), srecWaitForAddress(), and srecWaitForType().
bool bootScanInterfaces | ( | void | ) |
Perform search interface activity and handshake message.
References currentInterface, SerialInterface_t::getByte, HANDSHAKE_REQ, SerialInterface_t::hwInit, SerialInterface_t::hwUnInit, serialInterface, and UPPER_BYTE_OFFSET.
Referenced by srecHandshake().
void bootSetChar | ( | uint16_t | len, |
uint8_t * | p | ||
) |
Write byte to interface.
[in] | len | - data length; |
[in] | p | - pointer to data buffer. |
References currentInterface, and SerialInterface_t::setByte.
Referenced by srecHandshake(), and srecProtocol().
void bootUnInitSerializer | ( | void | ) |
Clear interface setting.
References currentInterface, SerialInterface_t::hwUnInit, and lowLevelUnInit().
Referenced by srecHandshake(), and srecProtocol().
|
static |
Referenced by bootGetChar(), bootScanInterfaces(), bootSetChar(), and bootUnInitSerializer().
|
static |
Referenced by bootScanInterfaces().