Jump to main content

# 1.1.2.4.17 DRV_G3_MACRT_Status Function

## C

    DRV_G3_MACRT_STATE DRV_G3_MACRT_Status (
        const SYS_MODULE_INDEX index
    );

## Summary

Gets the current status of the G3 MAC RT driver module.

## Description

This routine provides the current status of the G3 MAC RT driver module.

## Precondition

DRV_G3_MACRT_Initialize should have been called before calling this function.

## Parameters

Param | Description
--- | ---
index | Identifier for the instance used to initialize driver.

## Returns

Status | Description
--- | ---
DRV_G3_MACRT_STATE_READY | Driver is ready to accept requests for new operations.
DRV_G3_MACRT_STATE_UNINITIALIZED | Driver is not initialized.
DRV_G3_MACRT_STATE_ERROR | Driver is not initialized correctly.
DRV_G3_MACRT_STATE_BUSY | Driver is initializing.
DRV_G3_MACRT_STATE_WAITING_TX_CFM | Driver is waiting a confirmation of the last transmission.

## Example

    SYS_STATUS status;
    // 'DRV_G3_MACRT_INDEX' is the one used before for Driver Initialization
    status = DRV_G3_MACRT_Status(DRV_G3_MACRT_INDEX);

## Remarks

None.

Rev: G