7.9.8.60. GEL_PortDisconnect()ΒΆ

For simulator only, disconnects a data file from a memory (port) address.

Syntax

GEL_PinDisconnect(portAddress, page, length, accessType);

Parameters

portAddressspecifies the starting address of a range in memory. This Parameters can be an absolute address, any C expression, the name of a C function, or an assembly language label. If you want to specify a hex address, be sure to prefix the address number with 0x; otherwise, Code Composer Studio treats the number as a decimal address.

pageidentifies the type of memory: 0 (Program memory), 1 (Data memory) or 2 (I/O space)

For processors that do not have more than one type of memory, use 0 for this Parameters.

lengthdefines the length of the range. This Parameters can be any C expression.

accessTypespecifies the type of access allowed. The access type can be any combination of the following values:

Access Type

#define GTI_ATTR_PORT_READ

#define GTI_ATTR_PORT_NOREWIND

#define GTI_ATTR_PORT_UPDATE

#define GTI_ATTR_PORT_EXTERN

Value

0x01

0x02

0x04

0x08

0x10

Description

The simulator allows you to read or write data by connecting a data file to a memory (port) address. This function disconnects the currently connected data file from the specified memory address.

Synchronous

Synchronous from GEL: Yes

Completely synchronous: Yes

Example

GEL_PortDisconnect(0x1000, 0, 0x100,);

Related Topics

GEL_PortConnect()

Connecting a File to a Memory Address