/* -------------------------------------------------------------------------------------------------- */ /* 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); }