mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 11:02:45 +02:00
results: add i2c results
This commit is contained in:
parent
9dfe7709d9
commit
a189071537
@ -23,6 +23,7 @@
|
||||
#include "results/fatal_results.hpp"
|
||||
#include "results/fs_results.hpp"
|
||||
#include "results/hipc_results.hpp"
|
||||
#include "results/i2c_results.hpp"
|
||||
#include "results/kernel_results.hpp"
|
||||
#include "results/kvdb_results.hpp"
|
||||
#include "results/loader_results.hpp"
|
||||
|
26
include/stratosphere/results/i2c_results.hpp
Normal file
26
include/stratosphere/results/i2c_results.hpp
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <switch.h>
|
||||
|
||||
static constexpr u32 Module_I2c = 101;
|
||||
|
||||
static constexpr Result ResultI2cNoAck = MAKERESULT(Module_I2c, 1);
|
||||
static constexpr Result ResultI2cBusBusy = MAKERESULT(Module_I2c, 2);
|
||||
static constexpr Result ResultI2cFullCommandList = MAKERESULT(Module_I2c, 3);
|
||||
static constexpr Result ResultI2cTimedOut = MAKERESULT(Module_I2c, 4);
|
||||
static constexpr Result ResultI2cUnknownDevice = MAKERESULT(Module_I2c, 5);
|
Loading…
Reference in New Issue
Block a user