1 // -*- coding: utf-8 -*-
4 // This file is part of ruwai.
6 // If you use ruwai in any program or publication, please inform and
7 // acknowledge its author Stefan Mertl (stefan@mertl-research.at).
9 // pSysmon is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
34 //! The supported gain types.
35 typedef enum pga_gain_e
{
60 //! The Ruwai PGA281 class.
62 * Detailed description.
67 /*! The constructor. */
68 RwPga281(uint8_t port_expander_address
);
70 /*! Set the gain of the PGA. */
71 void set_gain(pga_gain_t pga_gain
);
75 uint8_t port_expander
;