Jump to main content

##

# 1.2.5.2.5 TCPIP_MAC_ConfigGet Function

## C

    size_t TCPIP_MAC_ConfigGet(
        DRV_HANDLE hMac,
        void* configBuff,
        size_t buffSize,
        size_t* pConfigSize
    );

## Description

This function will get the current MAC driver configuration and store it into a supplied buffer.

## Precondtions

The TCPIP_MAC_Initialize() function should have been called. TCPIP_MAC_Open() should have been called to obtain a valid handle.

## Parameters

Parameters | Description
--- | ---
hMac | Handle identifying the MAC driver client.
configBuff | Pointer to a buffer to store the configuration. Can be NULL if not needed.
buffSize | Size of the supplied buffer.
pConfigSize | Address to store the number of bytes needed for the storage of the MAC configuration. Can be NULL if not needed.

## Returns

- The number of bytes copied into the supplied storage buffer.

## Remarks

None.