English
Language : 

UM1573 Datasheet, PDF (9/27 Pages) STMicroelectronics – ST7540 power line modem firmware stack
UM1573
ST7540 stack firmware code
The data structure is the following:
typedef struct
{
/* Interrupt priorities */
uint8_t PLM_SPI_PreemptyPriority;
uint8_t PLM_SPI_SubPriority;
uint8_t PLM_CDPD_PreemptyPriority;
uint8_t PLM_CDPD_SubPriority;
}PLM_IntPriorityInitTypeDef;
Figure 6. ST7540 driver structure
PLM (ST7540) DRIVER
ST7540 APIs
GPIO Std. Peripheral Lib.
EXTI Std. Peripheral Lib.
SPI Std. Peripheral Lib.
AM15248v1
Next, the ST7540 is configured and programmed by the following function:
void PLM_Init(PLM_InitTypeDef *PLM_InitStruct);
This routine sets up all the modem parameters and initializes its internal registers. The
structure passed to the API is the following:
typedef struct
{
PLMFreq_TypeDef
PLMBaudrate_TypeDef
uint16_t
PLMDeviation_TypeDef
PLMPrefilter_TypeDef
PLMSensitivity_TypeDef
}PLM_InitTypeDef;
PLM_BandpassFrequency;
PLM_BaudRate;
PLM_HeaderPreamble;
PLM_Deviation;
PLM_PreFilter;
PLM_Sensitivity;
In the stm32f10x_plm.h file all the typedefs of the previous structure with the admitted
values for the PLM parameters are defined.
The following APIs are used for the ST7540 peripheral management, and are the starting
point for implementing its own stack firmware.
Doc ID 023619 Rev 1
9/27