1.4.3.35 PAL_GetSignalCapture Function
C
uint16_t PAL_GetSignalCapture(uint16_t pch, uint8_t *noiseCapture, PAL_FRAME frameType,
uint32_t timeStart, uint32_t duration);
Summary
Get Capture Noise Data
Description
This routine is used to read noise data for PLC medium communication.
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
pch | Physical channel |
noiseCapture | Pointer to destination buffer to store data |
frameType | Start time in us based on PL360 timer reference |
duration | Duration time in us |
Returns
Size in bytes of data capture.
Example
uint32_t timeStart = 10000;
uint32_t duration = 5000;
uint8_t noiseCapture[300];
uint16_t noiseSize;
PAL_FRAME frameType = PAL_MODE_TYPE_B;
uint8_t pch = 1;
noiseSize = PAL_GetSignalCapture(pch, &noiseCapture, frameType, timeStart, duration);
Remarks
Only available for PHY PLC.