DatvRx/longmynd/stv6120_utils.c

33 lines
2.3 KiB
C
Raw Permalink Normal View History

2024-06-04 19:03:30 +02:00
/* -------------------------------------------------------------------------------------------------- */
/* 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);
}