Home Contents | # v4kf:chipEnable | V4kf | Core4 Lua Event System

## SYNOPSIS

#include <lua/v4kf.lh>
rdrhandle:chipEnable(type)

## DESCRIPTION

Enables a chip card for access. This applies power to the chip and performs any necessary initialization.

The argument type indicates the type of chip to be enabled. Currently the values CHIP_I2C_11BIT (I²C cards, 11 bit addressing) and CHIP_I2C_16BIT (I²C cards, 16 bit addressing) are supported.

This command can only be used if the reader is in the Locked state, which secures the chip card against removal during operation.

While this state processes, the reader is in the Processing state and v4kf:isProcessing() returns true. The reader returns to the Locked state on completion.

The command returns immediately. Actual execution of any reader operation is done within the event loop.

The processing result is provided with the v4kf.processingComplete() callback.

## RETURN VALUE

Returns true if the command was accepted, false if not.

## SEE ALSO

v4kf:chipDisable, v4kf:chipRead, v4kf:chipWrite, v4kf:chipActivate, v4kf:state