Skip to content

Register write configuration

Stefan Hirschmann edited this page Oct 6, 2018 · 3 revisions

Allows to write to any EC register.

Example:

<RegisterWriteConfiguration>
  <Description>Fake thermal zone temperature</Description>
  <WriteOccasion>OnInitialization</WriteOccasion>
  <WriteMode>Set</WriteMode>  
  <Register>38</Register>
  <Value>28</Value>
  <ResetRequired>true</ResetRequired>
  <ResetWriteMode>Set</ResetWriteMode>
  <ResetValue>0</ResetValue>
</RegisterWriteConfiguration>

Description

A short description of what effect the RegisterWriteConfiguration will have.


WriteOccasion

Defines when the value should be written.

Options:

  • OnInitialization: writes the value once upon initialization (everytime the fan control service is enabled or a config is applied)
  • OnWriteFanSpeed: writes the value everytime the fan speed is set

WriteMode [deprecated]

⚠️ In future versions, this option will not be supported anymore. Instead, the specified register will always be overwritten.

Defines how the value will be written.

Options:

  • Set: overwrites the register with the specified value (register = value)
  • And: performs a binary AND operation (register = register & value)
  • Or: performs a binary OR operation (register = register | value)

Register

The register which will be manipulated.
Must be an integer between 0 and 255.


Value

The value which will be written.
Must be an integer between 0 and 255.


ResetRequired

Defines if the register should be reset before the service is shut down.


ResetWriteMode [deprecated]

⚠️ In future versions, this option will not be supported anymore. Instead, the specified register will always be overwritten.

See WriteMode. Will only be applied on reset.


ResetValue

The value which will be written upon reset.