|
IoT-MBBR (masterthesis)
Masterthesis upgrading a Moving Bed BioReactor with extra sensors and cloud connectivity.
|
I2C functionality. More...
#include <stdint.h>#include <stdbool.h>#include "em_device.h"#include "em_cmu.h"#include "em_gpio.h"#include "em_i2c.h"#include "i2c.h"#include "debug_dbprint.h"#include "pin_mapping.h"Go to the source code of this file.
Functions | |
| int8_t | initI2C (void) |
| I2C initialization (if not already initialized). More... | |
Variables | |
| bool | I2C_initialized = false |
I2C functionality.
Copyright (C) 2020 - Brecht Van Eeckhoudt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that 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.
A copy of the GNU General Public License can be found in the LICENSE file along with this source code.
Some methods use code obtained from examples from Silicon Labs' GitHub. These sections are licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file i2c.c.
| int8_t initI2C | ( | void | ) |
I2C initialization (if not already initialized).
0 - Initialized correctly. -1 - Initialization failed. Definition at line 66 of file i2c.c.