Jump to main content

# 1.1.2.4.25 DRV_G3_MACRT_INIT Struct

## C

    typedef struct
    {
        /* Identifies the HAL API set to be used by the driver to access
         * peripherals. */
        DRV_PLC_HAL_INTERFACE           *plcHal;

        /* PLC Profile */
        uint8_t                         plcProfile;

        /* Start Address where PLC binary file is located */
        uint32_t                        binStartAddress;

        /* End Address where PLC binary file is located */
        uint32_t                        binEndAddress;

        /* Secure mode */
        bool                            secure;

    } DRV_G3_MACRT_INIT;

## Summary

Contains the data required to initialize the PLC driver.

## Description

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

It is passed as parameter (casted as `SYS_MODULE_INIT`) to DRV_G3_MACRT_Initialize function.

Field description:

- plcHal: Pointer to DRV_PLC_HAL_INTERFACE Struct which defines the way driver accesses to PLC transceiver
- plcProfile: Not used, reserved for future use
- binStartAddress: Memory address where the first byte of transceiver's binary file is located
- binEndAddress: Memory address where the last byte of transceiver's binary file is located
- secure: Flag to indicate whether binary file is encrypted, not supported on current version

## Remarks

None.

Rev: G