Jump to main content

##

# MAC_DRVR_Open Function

## C

    DRV_HANDLE MAC_DRVR_Open( const SYS_MODULE_INDEX drvIndex, const DRV_IO_INTENT intent );

## Returns

- DRV_HANDLE - pointer to MAC client
- 0 if call failed

## Description

This function opens a client instance of the PIC32 MAC Driver. Used by tcpip_module_manager.

## Remarks

The intent parameter is not used in the current implementation and is maintained only for compatibility with the generic driver Open function signature.

## Preconditions

MAC_DRVR_Initialize() should have been called.

## Parameters

Parameters | Description
--- | ---
drvIndex | Identifier for the driver instance to be opened.
intent | Zero or more of the values from the enumeration DRV_IO_INTENT ORed together to indicate the intended use of the driver