@sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget /translations/zh_CN/hwmon/max197modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/zh_TW/hwmon/max197modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/it_IT/hwmon/max197modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ja_JP/hwmon/max197modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ko_KR/hwmon/max197modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/sp_SP/hwmon/max197modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hKernel driver max197h]hKernel driver max197}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh:/var/lib/git/docbuild/linux/Documentation/hwmon/max197.rsthKubh paragraph)}(hAuthor:h]hAuthor:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(h7* Vivien Didelot h]h bullet_list)}(hhh]h list_item)}(h5Vivien Didelot h]h)}(h4Vivien Didelot h](hVivien Didelot <}(hhhhhNhNubh reference)}(h#vivien.didelot@savoirfairelinux.comh]h#vivien.didelot@savoirfairelinux.com}(hhhhhNhNubah}(h]h ]h"]h$]h&]refuri*mailto:vivien.didelot@savoirfairelinux.comuh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]bullet*uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hSupported chips:h]hSupported chips:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h* Maxim MAX197 Prefix: 'max197' Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX197.pdf * Maxim MAX199 Prefix: 'max199' Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX199.pdf h]h)}(hhh](h)}(h[Maxim MAX197 Prefix: 'max197' Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX197.pdf h](h)}(h Maxim MAX197h]h Maxim MAX197}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj%ubh)}(hPrefix: 'max197'h]hPrefix: ‘max197’}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj%ubh)}(h:Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX197.pdfh](h Datasheet: }(hjEhhhNhNubh)}(h/http://datasheets.maxim-ic.com/en/ds/MAX197.pdfh]h/http://datasheets.maxim-ic.com/en/ds/MAX197.pdf}(hjMhhhNhNubah}(h]h ]h"]h$]h&]refurijOuh1hhjEubeh}(h]h ]h"]h$]h&]uh1hhhhKhj%ubeh}(h]h ]h"]h$]h&]uh1hhj"ubh)}(h[Maxim MAX199 Prefix: 'max199' Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX199.pdf h](h)}(h Maxim MAX199h]h Maxim MAX199}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubh)}(hPrefix: 'max199'h]hPrefix: ‘max199’}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubh)}(h:Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX199.pdfh](h Datasheet: }(hjhhhNhNubh)}(h/http://datasheets.maxim-ic.com/en/ds/MAX199.pdfh]h/http://datasheets.maxim-ic.com/en/ds/MAX199.pdf}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhubeh}(h]h ]h"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]jj uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hThe A/D converters MAX197, and MAX199 are both 8-Channel, Multi-Range, 5V, 12-Bit DAS with 8+4 Bus Interface and Fault Protection.h]hThe A/D converters MAX197, and MAX199 are both 8-Channel, Multi-Range, 5V, 12-Bit DAS with 8+4 Bus Interface and Fault Protection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hThe available ranges for the MAX197 are {0,-5V} to 5V, and {0,-10V} to 10V, while they are {0,-2V} to 2V, and {0,-4V} to 4V on the MAX199.h]hThe available ranges for the MAX197 are {0,-5V} to 5V, and {0,-10V} to 10V, while they are {0,-2V} to 2V, and {0,-4V} to 4V on the MAX199.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Platform datah]h Platform data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hThe MAX197 platform data (defined in linux/platform_data/max197.h) should be filled with a pointer to a conversion function, defined like::h]hThe MAX197 platform data (defined in linux/platform_data/max197.h) should be filled with a pointer to a conversion function, defined like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubh literal_block)}(hint convert(u8 ctrl);h]hint convert(u8 ctrl);}hj sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j hhhK%hjhhubh)}(hctrl is the control byte to write to start a new conversion. On success, the function must return the 12-bit raw value read from the chip, or a negative error code otherwise.h]hctrl is the control byte to write to start a new conversion. On success, the function must return the 12-bit raw value read from the chip, or a negative error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjhhubh)}(hControl byte format:h]hControl byte format:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jChj@ubjD)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jChj@ubjD)}(hhh]h}(h]h ]h"]h$]h&]colwidthK,uh1jChj@ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(hBith]hBit}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjoubah}(h]h ]h"]h$]h&]uh1jmhjjubjn)}(hhh]h)}(hNameh]hName}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jmhjjubjn)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jmhjjubeh}(h]h ]h"]h$]h&]uh1jhhjeubji)}(hhh](jn)}(hhh]h)}(h7,6h]h7,6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hPD1,PD0h]hPD1,PD0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hClock and Power-Down modesh]hClock and Power-Down modes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjeubji)}(hhh](jn)}(hhh]h)}(h5h]h5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hj ubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hACQMODh]hACQMOD}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hj"ubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(h+Internal or External Controlled Acquisitionh]h+Internal or External Controlled Acquisition}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hj9ubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjeubji)}(hhh](jn)}(hhh]h)}(h4h]h4}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjYubah}(h]h ]h"]h$]h&]uh1jmhjVubjn)}(hhh]h)}(hRNGh]hRNG}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjpubah}(h]h ]h"]h$]h&]uh1jmhjVubjn)}(hhh]h)}(h)Full-scale voltage magnitude at the inputh]h)Full-scale voltage magnitude at the input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jmhjVubeh}(h]h ]h"]h$]h&]uh1jhhjeubji)}(hhh](jn)}(hhh]h)}(h3h]h3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hBIPh]hBIP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(h#Unipolar or Bipolar conversion modeh]h#Unipolar or Bipolar conversion mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjeubji)}(hhh](jn)}(hhh]h)}(h2,1,0h]h2,1,0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hA2,A1,A0h]hA2,A1,A0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hj ubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hChannelh]hChannel}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hj#ubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjeubeh}(h]h ]h"]h$]h&]uh1jchj@ubeh}(h]h ]h"]h$]h&]colsKuh1j>hj;ubah}(h]h ]h"]h$]h&]uh1j9hjhhhhhNubeh}(h] platform-dataah ]h"] platform dataah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hSysfs interfaceh]hSysfs interface}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hhhhhK7ubh)}(hX============== ============================================================== in[0-7]_input The conversion value for the corresponding channel. RO in[0-7]_min The lower limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to -10000, -5000, or 0. For the MAX199, it will be adjusted to -4000, -2000, or 0. RW in[0-7]_max The higher limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to 0, 5000, or 10000. For the MAX199, it will be adjusted to 0, 2000, or 4000. RW ============== ==============================================================h]j:)}(hhh]j?)}(hhh](jD)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jChjsubjD)}(hhh]h}(h]h ]h"]h$]h&]colwidthK>uh1jChjsubjd)}(hhh](ji)}(hhh](jn)}(hhh]h)}(h in[0-7]_inputh]h in[0-7]_input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(h6The conversion value for the corresponding channel. ROh]h6The conversion value for the corresponding channel. RO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjubji)}(hhh](jn)}(hhh]h)}(h in[0-7]_minh]h in[0-7]_min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hThe lower limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to -10000, -5000, or 0. For the MAX199, it will be adjusted to -4000, -2000, or 0. RWh]hThe lower limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to -10000, -5000, or 0. For the MAX199, it will be adjusted to -4000, -2000, or 0. RW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjubji)}(hhh](jn)}(hhh]h)}(h in[0-7]_maxh]h in[0-7]_max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubah}(h]h ]h"]h$]h&]uh1jmhjubjn)}(hhh]h)}(hThe higher limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to 0, 5000, or 10000. For the MAX199, it will be adjusted to 0, 2000, or 4000. RWh]hThe higher limit (in mV) for the corresponding channel. For the MAX197, it will be adjusted to 0, 5000, or 10000. For the MAX199, it will be adjusted to 0, 2000, or 4000. RW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubah}(h]h ]h"]h$]h&]uh1jmhjubeh}(h]h ]h"]h$]h&]uh1jhhjubeh}(h]h ]h"]h$]h&]uh1jchjsubeh}(h]h ]h"]h$]h&]colsKuh1j>hjpubah}(h]h ]h"]h$]h&]uh1j9hjlubah}(h]h ]h"]h$]h&]uh1hhhhK9hj[hhubeh}(h]sysfs-interfaceah ]h"]sysfs interfaceah$]h&]uh1hhhhhhhhK7ubeh}(h]kernel-driver-max197ah ]h"]kernel driver max197ah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjmfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj}error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jXjUjjjXjUjPjMu nametypes}(jXjjXjPuh}(jUhjjjUjjMj[u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.