![]() |
|
|||
File indexing completed on 2025-05-11 08:22:44
0001 /* ---------------------------------------------------------------------------- */ 0002 /* Atmel Microcontroller Software Support */ 0003 /* SAM Software Package License */ 0004 /* ---------------------------------------------------------------------------- */ 0005 /* Copyright (c) 2015, Atmel Corporation */ 0006 /* */ 0007 /* All rights reserved. */ 0008 /* */ 0009 /* Redistribution and use in source and binary forms, with or without */ 0010 /* modification, are permitted provided that the following condition is met: */ 0011 /* */ 0012 /* - Redistributions of source code must retain the above copyright notice, */ 0013 /* this list of conditions and the disclaimer below. */ 0014 /* */ 0015 /* Atmel's name may not be used to endorse or promote products derived from */ 0016 /* this software without specific prior written permission. */ 0017 /* */ 0018 /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ 0019 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 0020 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ 0021 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ 0022 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 0023 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ 0024 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ 0025 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ 0026 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ 0027 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 0028 /* ---------------------------------------------------------------------------- */ 0029 0030 /** 0031 * \file 0032 * 0033 * Implementation WM8904 driver. 0034 * 0035 */ 0036 0037 #ifndef CS2100_H 0038 #define CS2100_H 0039 0040 #include "board.h" 0041 0042 /*---------------------------------------------------------------------------- 0043 * Definitions 0044 *----------------------------------------------------------------------------*/ 0045 0046 #define CS2100_SLAVE_ADDRESS 0x4E 0047 0048 /** ID and Rev register*/ 0049 #define CS2100_REG_ID 0x01 0050 0051 /** VMID control 0 register*/ 0052 #define CS2100_REG_CTRL 0x02 0053 0054 /** MIC Bias control 0 register*/ 0055 #define CS2100_REG_DEV_CFG1 0x03 0056 0057 /** Bias control 1 register*/ 0058 #define CS2100_REG_CFG 0x05 0059 0060 /** Power management control 0 register*/ 0061 #define CS2100_REG_32_BIT_RATIO_1 0x06 0062 /** Power management control 0 register*/ 0063 #define CS2100_REG_32_BIT_RATIO_2 0x07 0064 /** Power management control 0 register*/ 0065 #define CS2100_REG_32_BIT_RATIO_3 0x08 0066 /** Power management control 0 register*/ 0067 #define CS2100_REG_32_BIT_RATIO_4 0x09 0068 /** Power management control 2 register*/ 0069 #define CS2100_REG_FUNC_CFG1 0x16 0070 /** Power management control 3 register*/ 0071 #define CS2100_REG_FUNC_CFG2 0x17 0072 /** Power management control 3 register*/ 0073 #define CS2100_REG_FUNC_CFG3 0x1E 0074 0075 /*---------------------------------------------------------------------------- 0076 * Exported functions 0077 *----------------------------------------------------------------------------*/ 0078 0079 extern uint16_t CS2100_Read( 0080 Twid *pTwid, 0081 uint32_t device, 0082 uint32_t regAddr); 0083 0084 extern void CS2100_Write( 0085 Twid *pTwid, 0086 uint32_t device, 0087 uint32_t regAddr, 0088 uint16_t data); 0089 0090 extern uint8_t CS2100_Init(Twid *pTwid, uint32_t device, uint32_t PCK); 0091 #endif // CS2100_H 0092 0093
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |