Class: HackRF::Device::PartIDSerialNumber
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- HackRF::Device::PartIDSerialNumber
- Defined in:
- lib/hackrf/device.rb
Instance Method Summary collapse
Instance Method Details
#part_id ⇒ Object
163 164 165 |
# File 'lib/hackrf/device.rb', line 163 def part_id (self[:part_id][0] << 32) | self[:part_id][1] end |
#serial_no ⇒ Object
167 168 169 170 171 172 |
# File 'lib/hackrf/device.rb', line 167 def serial_no (self[:serial_no][0] << (32 * 3)) | (self[:serial_no][1] << (32 * 2)) | (self[:serial_no][2] << 32) | self[:serial_no][3] end |