How to use the get_xtal_freq function from bindings

Find comprehensive JavaScript bindings.get_xtal_freq code examples handpicked from public code repositorys.

149
150
151
152
153
154
155
156
157
describe('get_xtal_freq(dev_hnd)', () => {
	it('returns the device and tuner freqs as an object from rtlsdr_get_xtal_freq', () => {
		rtlsdr.mock_set_rtlsdr_dev_contents(dev, 'rtl_freq', 1231000);
		rtlsdr.mock_set_rtlsdr_dev_contents(dev, 'tuner_freq', 1232000);

		const x = rtlsdr.get_xtal_freq(dev);
		x.rtl_freq.should.equal(1231000);
		x.tuner_freq.should.equal(1232000);
	});
fork icon0
star icon1
watch icon0

+ 143 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)