-
Notifications
You must be signed in to change notification settings - Fork 17
/
stv6120_utils.c
32 lines (27 loc) · 2.25 KB
/
stv6120_utils.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -------------------------------------------------------------------------------------------------- */
/* The LongMynd receiver: stv6120_utils.c */
/* - an implementation of the Serit NIM controlling software for the MiniTiouner Hardware */
/* - abstracting out the tuner (STV6120) register read and write routines */
/* H.L. Lomond 2018,2019 */
/* -------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------- */
/* ----------------- INCLUDES ----------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------- */
#include "nim.h"
/* -------------------------------------------------------------------------------------------------- */
/* ----------------- ROUTINES ----------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------- */
uint8_t stv6120_read_reg(uint8_t reg, uint8_t *val) {
/* -------------------------------------------------------------------------------------------------- */
/* passes the register read through to the underlying register reading routines */
/* -------------------------------------------------------------------------------------------------- */
return nim_read_tuner(reg, val);
}
/* -------------------------------------------------------------------------------------------------- */
uint8_t stv6120_write_reg(uint8_t reg, uint8_t val) {
/* -------------------------------------------------------------------------------------------------- */
/* passes the register write through to the underlying register writing routines */
/* -------------------------------------------------------------------------------------------------- */
return nim_write_tuner(reg, val);
}