FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
34
Freescale Semiconductor, Inc.
Firmware Functions
•
Returns
:
— void
WARNING
The RF Module must be turned on prior to calling this routine.
3.2.30
void TPMS_MSG_INIT(void)
•
Description:
This function is to be called before using any MSG routine. It initializes PTA1 and
PTA0 to their correct initial state for a simulated SPI.
•
Stack size:
2 bytes
•
Approx. Duration:
4 usec
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It will not be affected by
interrupts.
•
Resources:
Pins PTA1 and PTA0.
•
Input Parameters:
— None
•
Returns
:
— void
3.2.31
UINT8 TPMS_MSG_READ(void)
•
Description:
This function is in charge to read any incoming message at a network level via an
emulated serial interface on PTA1 and PTA0. As the master, the FXTH87xx11 and FXTH87xx12
manages the clock on PTA1. On falling edge of the clock, the module reads a new data bit on PTA0
(programmed as input), MSB first.
•
Stack size:
2 bytes
•
Approx. Duration:
80 usec.
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It will not be affected by
interrupts.
•
Resources:
Pins PTA1 and PTA0.
•
Input Parameters:
— None
•
Returns
:
— UINT8 u8ReadByte: Incoming byte from the emulated serial interface.