RIEVTECH — RIEVTECH STUDIO SOFTWARE MANUAL(2.0 Version).docx

RIEVTECH STUDIO SOFTWARE MANUAL intGetMem( Array Pointer,@AddressAlias@,AddressOffset,Byte Number ): Read consecutive words from specified registers. Array Pointer: pointer type, point to a pre-defined array. @Address Alias@: select a register as the beginning address, could be a bit type or word type register. Address Offset: an unsigned int number. The read beginning address=The address specified by @Address Alias@ + Address Offset. Number of Bytes: an unsigned int number, specifying how many bytes should be read. Please note: Number of Bytes = sizeof (Type of the Array) * (number of elements in the array). The upper limit of Number of Bytes is 20480. Return Value:

int type, 0-Failure, 1-Success. Example: unsigned short data[10]; int error = GetMem(data,@Array Data@,2,10*sizeof(unsigned short ) ): In this example, @Array Data@ = LW0, so the function will return 10 words from the address starting from LW2. char data[5]; int error = GetMem(data,@Array Data@,2,5): @Array Data@ = LW0, so the function will read 3 words (each word contains 2 variables of char type, the higher half of the last word is invalid) and copy to the array named "data" 6.2.1.6 Set Bit Register: SetBit intSetBit( @Address Alias@,AddressOffset,Set Value ): Write a bool value into one bit of a designated register address. @Address Alias@: Select a bit address register Address Offset:

An unsigned integer, Target Address=The address specified by @Address Alias@+Address Offset. 582