ProSoft Technology MVI69-ADM User Manual

Page 136

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 136 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_DBSetBit

Syntax

int ADM_DBSetBit(ADMHANDLE adm_handle, unsigned short offset)

Parameters

adm_handle

Handle returned by previous call to ADM_Open

offset

Bit offset into database

Description
This function sets a bit to a 1 in the database at a specified bit offset.

adm_handle must be a valid handle returned from ADM_Open.

Return Value

ADM_SUCCESS

No errors were encountered

ADM_ERR_NOACCESS

adm_handle does not have access

ADM_ERR_MEMORY

database is not allocated

ADM_ERR_REG_RANGE

offset is out of range

Example

ADMHANDLE adm_handle;
unsigned short offset;
ADM_DBSetBit(adm_handle, offset);

See Also
ADM_DBClearBit (page 137)

Advertising