1.1.1.4.17 DRV_PLC_HAL_INTERFACE Struct

C

typedef struct
{
    /* PLC PLIB Interface */
    DRV_PLC_PLIB_INTERFACE                   *plcPlib;

    /* PLC HAL init */
    DRV_PLC_HAL_INIT                         init;

    /* PLC HAL setup */
    DRV_PLC_HAL_SETUP                        setup;

    /* PLC HAL reset device */
    DRV_PLC_HAL_RESET                        reset;
     
    /* PLC low power management */
    DRV_PLC_HAL_SET_STBY                     setStandBy; /* Only visible if SLEEP MODE is enabled on Driver Configuration */

    /* PLC Temperature Monitor */
    DRV_PLC_HAL_GET_THMON                    getThermalMonitor; /* Only visible if PL460 Driver is used and THERMAL MONITOR is enabled on Driver Configuration */

    /* PLC HAL Set Tx Enable pin */
    DRV_PLC_HAL_SET_TXENABLE                 setTxEnable; /* Only visible if PL460 Driver is used */

    /* PLC HAL Enable/Disable external interrupt */
    DRV_PLC_HAL_ENABLE_EXT_INT               enableExtInt;

    /* PLC HAL Get Pin level */
    DRV_PLC_HAL_GET_PIN_LEVEL                getPinLevel;

    /* PLC HAL delay function */
    DRV_PLC_HAL_DELAY                        delay;

    /* PLC HAL Transfer Bootloader Command */
    DRV_PLC_HAL_SEND_BOOT_CMD                sendBootCmd;

    /* PLC HAL Transfer Write/Read Command */
    DRV_PLC_HAL_SEND_WRRD_CMD                sendWrRdCmd;

} DRV_PLC_HAL_INTERFACE;

Summary

Contains the data required to initialize the PLC driver HAL Interface.

Description

This structure contains the objects needed to initialize the driver access to PLC transceiver.

Field description:

  • plcPlib: Pointer to DRV_PLC_PLIB_INTERFACE Struct which defines the SPI and Control Lines to access PLC transceiver.

  • init: Pointer to Hardware Initialization function.

  • setup: Pointer to transceiver Setup function.

  • reset: Pointer to transceiver Reset function.

  • setStandBy: Pointer to transceiver Standby (Sleep) management function. Only available if SLEEP MODE is enabled on Driver Configuration.

  • getThermalMonitor: Pointer to transceiver Thermal Monitor status function. Only available if PL460 Driver is used and THERMAL MONITOR is enabled on Driver Configuration.

  • setTxEnable: Pointer to transceiver Tx Enable control function. Only available if PL460 Driver is used.

  • enableExtInt: Pointer to external interrupt (triggered by transceiver) management function.

  • getPinLevel: Pointer to external interrupt (triggered by transceiver) get pin level function.

  • delay: Pointer to driver's implementation of Delay function.

  • sendBootCmd: Pointer to driver's function to send a Boot Command to transceiver.

  • sendWrRdCmd: Pointer to driver's function to send a Read/write Command to transceiver.

Remarks

None.