📄 bsptwl3029_aux_pg1x.h
字号:
/******************************************************************************
* WIRELESS COMMUNICATION SYSTEM DEVELOPMENT
*
* (C) 2005 Texas Instruments France. All rights reserved
*
* Author : Mary TOOHER
*
*
* Important Note
* --------------
*
* This S/W is a preliminary version. It contains information on a product
* under development and is issued for evaluation purposes only. Features
* characteristics, data and other information are subject to change.
*
* The S/W is furnished under Non Disclosure Agreement and may be used or
* copied only in accordance with the terms of the agreement. It is an offence
* to copy the software in any way except as specifically set out in the
* agreement. No part of this document may be reproduced or transmitted in any
* form or by any means, electronic or mechanical, including photocopying and
* recording, for any purpose without the express written permission of Texas
* Instruments Inc.
*
******************************************************************************
*
* FILE NAME: bspTwl3029_Aux.h
*
*
* PURPOSE: Driver header for various Twl3029 ( Triton )analog Transceiver and resourse
* These are:
* LEDA - for use as LCD back light
* LEDB
* LEDC
* Vibrator
*
* Note: USBotg transceiver and SIM have their own separate drivers
*
* FILE REFERENCES:
*
* Name IO Description
* ------------- -- ---------------------------------------------
*
*
*
* EXTERNAL VARIABLES:
*
* Source:
*
* Name Type IO Description
* ------------- --------------- -- ------------------------------
*
*
*
*
* EXTERNAL REFERENCES:
*
* Name Description
* ------------------ -------------------------------------------------------
*
*
*
* ABNORMAL TERMINATION CONDITIONS, ERROR AND WARNING MESSAGES:
*
*
*
* ASSUMPTION, CONSTRAINTS, RESTRICTIONS:
*
*
*
* NOTES:
*
*
*
* REQUIREMENTS/FUNCTIONAL SPECIFICATION REFERENCES:
*
*
*
*
* DEVELOPMENT HISTORY:
*
* Date Name(s) Version Description
* ---------- -------------- ------- --------------------------------------
* 04/03/2004 Mary Tooher V1.0.0 First implementation
*/
#ifndef BSP_TWL3029_AUX_PG1x_HEADER
#define BSP_TWL3029_AUX_PG1x_HEADER
/*******************************************************************************
* includes
*/
#include "types.h"
//#include "main_system.h"
#include "bspTwl3029.h"
#include "bspTwl3029_I2c.h"
//#include "main_Platform.h"
/*=============================================================================
* Defines and Macros
*/
/*==========================================================================*/
/*==========================================================================*/
/*!
* @typedef BspTwl3029_Aux_LedCtrlField
*
* @discussion
* <b> Description </b><br>
* enum used to select fields to update in
* LED_CTRL register
*
* @constant
*
*/
enum
{
BSP_TWL3029_LED_CTRL_LPM = 1,
BSP_TWL3029_LED_CTRL_TIMER = 2
};
typedef Uint8 BspTwl3029_Aux_LedCtrlField;
/*==========================================================================*/
/*!
* @typedef BspTwl3029_Aux_LedCtrlLpm
*
* @discussion
* <b> Description </b><br>
* enum used for enable/disabling low power mode
*
* @constant
*
*/
enum
{
BSP_TWL3029_LED_LPM_DISABLE = 0,
BSP_TWL3029_LED_LPM_ENABLE = 1
};
typedef Uint8 BspTwl3029_Aux_LedCtrlLpm;
/*==========================================================================*/
/*!
* @typedef BspTwl3029_Aux_LedTimer
*
* @discussion
* <b> Description </b><br>
* defines timer step
* 0 - 125 us ( mim)
* 1 - 125 + 31 us ( min +step)
* -
* 4 - 250us ( hardware default)
* 0xf - 593us (max)
* @constant
*
*/
typedef Uint8 BspTwl3029_Aux_LedCtrlTimer;
/*==========================================================================*/
/*!
* @typedef BspTwl3029_Aux_LedsCtrlData
*
* @discussion
* <b> Description </b><br>
* struct containing control fields used for programming WLED_CTRL register
*
* lpm - low power enable ( active high )
*
* timer - White-LEDs monitoring timer control bits: they control the status of
* each WLEDs network.
* In case the circuit has not properly started (after the programmed time),
* this timer stops driving the network that does not works correctly
*
*/
typedef struct
{
BspTwl3029_I2C_RegData lpm;
BspTwl3029_I2C_RegData timer;
BspTwl3029_I2C_RegData reserved_1; /* not used for PG versions 1.x */
BspTwl3029_I2C_RegData reserved_2; /* not used for PG versions 1.x */
BspTwl3029_I2C_RegData reserved_3; /* not used for PG versions 1.x */
} BspTwl3029_Aux_LedsCtrlData;
/*=============================================================================
* Public Functions
*============================================================================*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -