Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem app epson mbed msp430 pl tests
vcom.h
00001 /* 00002 Plastic Logic EPD project on MSP430 00003 00004 Copyright (C) 2013 Plastic Logic Limited 00005 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 /* 00020 * vcom.h -- VCOM Calculation support 00021 * 00022 * Authors: Nick Terry <nick.terry@plasticlogic.com> 00023 * 00024 */ 00025 00026 #ifndef VCOM_H_ 00027 #define VCOM_H_ 00028 00029 #include <pl/hwinfo.h> 00030 #include <stdint.h> 00031 00032 struct vcom_cal { 00033 int32_t swing; 00034 int32_t swing_ideal; 00035 int32_t dac_offset; 00036 int32_t dac_dx; 00037 int32_t dac_dy; 00038 int32_t dac_step_mv; 00039 }; 00040 00041 /** Initialise a vcom_cal structure */ 00042 extern void vcom_init(struct vcom_cal *v, const struct pl_hw_vcom_info *c); 00043 00044 /** Get the DAC register value for a given VCOM input voltage */ 00045 extern int vcom_calculate(const struct vcom_cal *v, int input_mv); 00046 00047 #endif /* VCOM_H_ */
Generated on Tue Jul 12 2022 21:14:35 by
1.7.2