![]() |
LibDriver MCP4725
|
driver mcp4725 basic header file More...
#include "driver_mcp4725_interface.h"Go to the source code of this file.
Macros | |
| #define | MCP4725_BASIC_DEFAULT_POWER_DOWN_MODE MCP4725_POWER_DOWN_MODE_NORMAL |
| mcp4725 basic example default definition | |
| #define | MCP4725_BASIC_DEFAULT_MODE MCP4725_MODE_DAC |
| #define | MCP4725_BASIC_DEFAULT_REFERENCE_VOLTAGE 3.3f |
Functions | |
| uint8_t | mcp4725_basic_init (mcp4725_address_t addr_pin) |
| basic example init | |
| uint8_t | mcp4725_basic_deinit (void) |
| basic example deinit | |
| uint8_t | mcp4725_basic_write (float voltage_v) |
| basic example write | |
driver mcp4725 basic header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2021/03/09 | 2.0 | Shifeng Li | format the code |
| 2020/11/13 | 1.0 | Shifeng Li | first upload |
Definition in file driver_mcp4725_basic.h.
| #define MCP4725_BASIC_DEFAULT_MODE MCP4725_MODE_DAC |
normal mode
Definition at line 51 of file driver_mcp4725_basic.h.
| #define MCP4725_BASIC_DEFAULT_POWER_DOWN_MODE MCP4725_POWER_DOWN_MODE_NORMAL |
mcp4725 basic example default definition
normal power down
Definition at line 50 of file driver_mcp4725_basic.h.
| #define MCP4725_BASIC_DEFAULT_REFERENCE_VOLTAGE 3.3f |
3.3v reference voltage
Definition at line 52 of file driver_mcp4725_basic.h.