Specifications

CHAPTER 4
Software
44 System Software
csCode values:
High-level call:
Control(refNum: INTEGER; csCode: INTEGER; csParamPtr: Ptr) : OSErr
Status 4
PBStatus (paramBlock: ParmBlkPtr; async: BOOLEAN) : OSErr_Status
Parameter block
csCode values:
High-level call:
Status(refNum: INTEGER; csCode: INTEGER; csParamPtr: Ptr) : OSErr
Name Value Description
CtrlScrnBright $4301 Set screen brightness PWM value to
csParam[0] (value = 0-255).
CtrlSaveBright $4302 Store current brightness to PRAM.
CtrlScrnCont $4307 Set screen contrast PWM value to
csParam[0] (value = 0-255).
CtrlSaveCont $4308 Store current contrast to PRAM.
CtrlScreenOff $4309 Turn off power to internal monitor.
CtrlScreenOn $4310 Turn on power to internal monitor.
ioCompletion Nil.
ioResult controlErr (–17) if csCode value is unimplemented;
otherwise, noErr (0).
ioRefNum Driver’s reference number.
csCode Identifies the call; described below.
csParam Depends on the call; described with the csCode values
where it is used (csParam is an array of 11 shorts).
Name Value Description
StatScrnBright $5301 Return current screen brightness in
csParam[0](value = 0-255).
StatBrtMinMax $5303 Return minimum and maximum brightness values:
csParam[0] = maximum brightness,
csParam[1] = minimum brightness.
StatScrnCont $5307 Return current screen contrast in
csParam[0] (value = 0-255).
StatConMinMax $5308 Return minimum and maximum contrast values:
csParam[0] = maximum contrast,
csParam[1] = minimum contrast.
StatScrnOnOff $5309 Return state of internal monitor in
csParam[0]:
$00FF = monitor power is on,
$0000 = monitor power is off.