Class: Ragweed::Wraposx::FpControl

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ragweed/wraposx/structs.rb

Instance Method Summary collapse

Instance Method Details

#denormObject



11
12
13
# File 'lib/ragweed/wraposx/structs.rb', line 11

def denorm
  (self.value >> 14) & 1
end

#invalidObject



8
9
10
# File 'lib/ragweed/wraposx/structs.rb', line 8

def invalid
  self.value >> 15
end

#ovrflObject



17
18
19
# File 'lib/ragweed/wraposx/structs.rb', line 17

def ovrfl
  (self.value >> 12) & 1
end

#pcObject



29
30
31
# File 'lib/ragweed/wraposx/structs.rb', line 29

def pc
  (self.value >> 6) & 3
end

#precisObject



23
24
25
# File 'lib/ragweed/wraposx/structs.rb', line 23

def precis
  (self.value >> 10) & 1
end

#rcObject



32
33
34
# File 'lib/ragweed/wraposx/structs.rb', line 32

def rc
  (self.value >> 4) & 3
end

#res0Object



26
27
28
# File 'lib/ragweed/wraposx/structs.rb', line 26

def res0
  (self.value >> 8) & 3
end

#res1Object



35
36
37
# File 'lib/ragweed/wraposx/structs.rb', line 35

def res1
  (self.value >> 3) & 1
end

#res2Object



38
39
40
# File 'lib/ragweed/wraposx/structs.rb', line 38

def res2
  self.value & 7
end

#undflObject



20
21
22
# File 'lib/ragweed/wraposx/structs.rb', line 20

def undfl
  (self.value >> 11) & 1
end

#zdivObject



14
15
16
# File 'lib/ragweed/wraposx/structs.rb', line 14

def zdiv
  (self.value >> 13) & 1
end