Lexmark XS795 Printer Languages and Interfaces Technical Reference - Page 120

ioerror, rangecheck, Device Parameters for the Parameters Device %rom

Page 120 highlights

PostScript emulation 120 Key Type Definition InitializeAction integer Specifies an action for initializing the flash memory. Supported values are: • 0-Indicates no action. The value returned when the parameter is read. • 1-Indicates that the current file system should be deleted and a new one of PhysicalSize created (the flash memory must be formatted already). The flash memory must first be mounted; otherwise, an ioerror occurs. • 2-Reformats the entire flash memory before creating a file system of PhysicalSize. • 3 (or greater)-Has the same effect as the value 2 and also tests the flash memory x‑2 times. Legal value: Any non‑negative integer. LogicalSize integer This parameter is not used for InitializeAction. InitializeAction always formats to PhysicalSize, regardless of what is specified in LogicalSize. A query returns the current size (in pages) of the file system on the device. A value of 0 indicates that the device is not mounted. Legal values: Any non‑negative integer, including 0. The value of LogicalSize must be less than equal to the value of PhysicalSize. If set to a value greater that PhysicalSize, or less than zero, then a rangecheck error occurs. Mounted Boolean A device must contain a valid file system to mount successfully. When a device is mounted, it is known to the system and is readable. To verify if the device is mounted, query this parameter immediately after setting it. Supported values are: • True-System attempts to mount the flash memory. • False-System attempts to dismount the flash memory. PhysicalSize integer (Read‑only) Indicates the size of the flash memory (in pages). Valid only when the flash memory is mounted. A value of 0 indicates that the device is not mounted. Removable Searchable Boolean Boolean (Read‑only) Indicates that the drive supports removable flash memory. (Read‑only) Indicates that a flash memory participates in searches in file system operations that specify a file name without specifying a device. SearchOrder integer (Read‑only) If the Searchable parameter is True, then the value indicates the priority at which the flash memory is searched for a file in operations where no device is specified. A lower integer indicates a high priority. If the Searchable parameter is False, then the value of this integer has no meaning. Type Writeable name Boolean (Read‑only) Always returns the value of /FileSystem. (Read‑only) Indicates that the files on the flash memory can be opened for write access. A write‑protected flash memory returns False. When the flash is not mounted, this parameter indicates that the device supports writeable media. Device Parameters for the Parameters Device %rom% BlockSize integer (Read‑only).

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

Key
Type
Definition
InitializeAction
integer
Specifies an action for initializing the flash memory.
Supported values are:
0—Indicates no action. The value returned when the parameter is read.
1—Indicates that the current file system should be deleted and a new
one of PhysicalSize created (the flash memory must be formatted
already). The flash memory must first be mounted; otherwise, an
ioerror
occurs.
2—Reformats the entire flash memory before creating a file system of
PhysicalSize.
3 (or greater)—Has the same effect as the value 2 and also tests the
flash memory x
2 times.
Legal value: Any non
negative integer.
LogicalSize
integer
This parameter is not used for InitializeAction. InitializeAction always
formats to PhysicalSize, regardless of what is specified in LogicalSize. A
query returns the current size (in pages) of the file system on the device.
A value of 0 indicates that the device is not mounted.
Legal values: Any non
negative integer, including 0. The value of
LogicalSize must be less than equal to the value of PhysicalSize. If set to
a value greater that PhysicalSize, or less than zero, then a
rangecheck
error occurs.
Mounted
Boolean
A device must contain a valid file system to mount successfully. When a
device is mounted, it is known to the system and is readable. To verify if
the device is mounted, query this parameter immediately after setting it.
Supported values are:
True—System attempts to mount the flash memory.
False—System attempts to dismount the flash memory.
PhysicalSize
integer
(Read
only) Indicates the size of the flash memory (in pages). Valid only
when the flash memory is mounted. A value of 0 indicates that the device
is not mounted.
Removable
Boolean
(Read
only) Indicates that the drive supports removable flash memory.
Searchable
Boolean
(Read
only) Indicates that a flash memory participates in searches in file
system operations that specify a file name without specifying a device.
SearchOrder
integer
(Read
only) If the Searchable parameter is True, then the value indicates
the priority at which the flash memory is searched for a file in operations
where no device is specified. A lower integer indicates a high priority. If
the Searchable parameter is False, then the value of this integer has no
meaning.
Type
name
(Read
only) Always returns the value of /FileSystem.
Writeable
Boolean
(Read
only) Indicates that the files on the flash memory can be opened for
write access. A write
protected flash memory returns False. When the
flash is not mounted, this parameter indicates that the device supports
writeable media.
Device Parameters for the Parameters Device %rom%
BlockSize
integer
(Read
only).
PostScript emulation
120