for OV5642
Dependencies: EthernetInterface FATFileSystem GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed
i2c_setting.h@6:7ec90cc47dc4, 2015-11-02 (annotated)
- Committer:
- 1050186
- Date:
- Mon Nov 02 01:11:12 2015 +0000
- Revision:
- 6:7ec90cc47dc4
- Parent:
- 5:34d84609dd60
- Child:
- 7:c45ecff1b44d
The IP address is acquired from DHCP Server.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
1050186 | 5:34d84609dd60 | 1 | /* |
1050186 | 5:34d84609dd60 | 2 | Permission is hereby granted, free of charge, to any person obtaining a copy |
1050186 | 5:34d84609dd60 | 3 | of this software and associated documentation files (the "Software"), to deal |
1050186 | 5:34d84609dd60 | 4 | in the Software without restriction, including without limitation the rights |
1050186 | 5:34d84609dd60 | 5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
1050186 | 5:34d84609dd60 | 6 | copies of the Software, and to permit persons to whom the Software is |
1050186 | 5:34d84609dd60 | 7 | furnished to do so, subject to the following conditions: |
1050186 | 5:34d84609dd60 | 8 | |
1050186 | 5:34d84609dd60 | 9 | The above copyright notice and this permission notice shall be included in |
1050186 | 5:34d84609dd60 | 10 | all copies or substantial portions of the Software. |
1050186 | 5:34d84609dd60 | 11 | |
1050186 | 5:34d84609dd60 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
1050186 | 5:34d84609dd60 | 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
1050186 | 5:34d84609dd60 | 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
1050186 | 5:34d84609dd60 | 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
1050186 | 5:34d84609dd60 | 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
1050186 | 5:34d84609dd60 | 17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
1050186 | 5:34d84609dd60 | 18 | THE SOFTWARE. |
1050186 | 5:34d84609dd60 | 19 | */ |
1050186 | 5:34d84609dd60 | 20 | |
1050186 | 5:34d84609dd60 | 21 | #ifndef I2C_SETTING_H |
1050186 | 5:34d84609dd60 | 22 | #define I2C_SETTING_H |
1050186 | 5:34d84609dd60 | 23 | |
1050186 | 5:34d84609dd60 | 24 | //#define DEBUGPRINT_CFG |
1050186 | 5:34d84609dd60 | 25 | |
1050186 | 5:34d84609dd60 | 26 | #ifdef DEBUGPRINT_CFG |
1050186 | 5:34d84609dd60 | 27 | #define DEBUGPRINT printf |
1050186 | 5:34d84609dd60 | 28 | #else |
1050186 | 5:34d84609dd60 | 29 | #define DEBUGPRINT |
1050186 | 5:34d84609dd60 | 30 | #endif |
1050186 | 5:34d84609dd60 | 31 | |
1050186 | 5:34d84609dd60 | 32 | |
1050186 | 5:34d84609dd60 | 33 | #define RECV_BUF_SIZE (1024) |
1050186 | 5:34d84609dd60 | 34 | #define DATA_ANALY_ERROR (-1) |
1050186 | 5:34d84609dd60 | 35 | #define REG_REQ_BUF_SIZE (7) |
1050186 | 5:34d84609dd60 | 36 | #define DATA_MAX_SIZE (32) |
1050186 | 5:34d84609dd60 | 37 | #define ARG_MAX_NUM (DATA_MAX_SIZE + 2) // I2C addr, len, data1, data2, data3, ... |
1050186 | 5:34d84609dd60 | 38 | #define ARG_MAX_SIZE (2) // upper bit + lower bit |
1050186 | 5:34d84609dd60 | 39 | #define NULL_SIZE (1) |
1050186 | 5:34d84609dd60 | 40 | #define CODE_NULL (0x00) |
1050186 | 5:34d84609dd60 | 41 | #define NUM_STR_TO_HEX (0x30) |
1050186 | 5:34d84609dd60 | 42 | #define BIG_STR_TO_HEX (0x37) |
1050186 | 5:34d84609dd60 | 43 | #define SMA_STR_TO_HEX (0x57) |
1050186 | 5:34d84609dd60 | 44 | #define MASK_HEX10 (0x10) |
1050186 | 5:34d84609dd60 | 45 | |
1050186 | 5:34d84609dd60 | 46 | extern void analy_and_exe(char * buf); |
1050186 | 5:34d84609dd60 | 47 | extern void SetI2CfromTerm(void const *argument); |
1050186 | 5:34d84609dd60 | 48 | |
1050186 | 5:34d84609dd60 | 49 | #endif |