SLAA600E June 2013 – January 2024
The PHY-DL layer provides a hardware abstraction layer (HAL) to simplify the migration process to a different MSP430 derivative or peripheral. The PHY-DL layer provides a stable channel for sending data to and receiving raw data from the host. The current bootloader was originally implemented using I2C, UART, or SPI. It currently supports the USI, USCI, and eUSCI modules, but other options could be included if desired.
The PHY-DL layer is initialized by providing a pointer to a structure with the callback function in Table 2-1.
t_CI_Callback | Structure Type Definition |
---|---|
.RxCallback | Called when a new byte is received |
.TxCallback | Called when a byte needs to be transmitted |
.ErrorCallback(1) | Called when an error is detected in PHY-DL (a time-out) |
.StartCallback(1) | Called when the start of a packet is detected |
.StopCallback(1) | Called when the end of packet is detected |
A higher level layer (NWK-APP) uses the callback functions to implement the communication protocol. Depending on the protocol, some callbacks are not required and they can be disabled in the PHY-DL layer to reduce the footprint. NWK-APP layer is described in Section 2.4.2.