ProSoft Technology MVI69-ADM User Manual

Page 161

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Application Development Function Library - ADM API

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 161 of 342

February 20, 2013

ADM_DBOR_Byte

Syntax

int ADM_DBOR_Byte(ADMHANDLE adm_handle, int offset, unsigned char bval)

Parameters

adm_handle

Handle returned by previous call to ADM_Open

offset

Byte offset into database

bval

Bit mask to be ORed with the byte at offset

Description
This function ORs a byte in the database with a byte-long bit mask.

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;
int offset;
unsigned char bval = 0x55;
ADM_DBOR_Byte(adm_handle, offset, bval);

Advertising