# WXC_Init

## Syntax

  `#include <nitro/wxc.h>`
  `void WXC_Init(void *work, WXCCallback callback, u32 dma);`

## Arguments

work | Pointer to memory allocated for the internal state management of the WXC library. The size must be equal to or larger than WXC_WORK_SIZE bytes. The allocated memory is used internally until the WXC_End function is called.
callback | Callback function that receives notification from the WXC library.
dma | DMA channel used internally in the WXC library.

## Return Values

None.

## Description

Initializes the WXC library.
It must be called at least once before any WXC function is called.
Calling this function more than once does nothing. During calls to this function, the library's internal state transitions from WXC_STATE_END to WXC_STATE_READY.
After calling this function, to start the actual internal wireless operation, WXC_Start function must be called.

## See Also

`WXCCallback
WXCStateCode
WXC_WORK_SIZE
WXC_Start
WXC_End`

## Revision History

2005/08/04 Initial version.

CONFIDENTIAL