TwlIPL/include/sysmenu/sysmenu_lib/common/pxi.h
nakasima 7db4bae3db TS-X2/X3バックライト輝度変更の動的切り替えのためのマイコンスレッド追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@664 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-02-15 00:31:07 +00:00

63 lines
1.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*---------------------------------------------------------------------------*
Project: TwlIPL
File: pxi.h
Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
$Date:: #$
$Rev: $
$Author: $
*---------------------------------------------------------------------------*/
#ifndef SYSM_COMMON_PXI_H_
#define SYSM_COMMON_PXI_H_
#include <nitro/pxi.h>
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------
// PXIコマンド
//----------------------------------------------------------------------
#define SYSMENU_PXI_FIFO_TAG (PXI_MAX_FIFO_TAG - 1)
#define PXI_FIFO_TAG_MCUTEST (PXI_MAX_FIFO_TAG - 2)
typedef enum SYSMPXICommand {
SYSM_PXI_COMM_BL_BRIGHT = 0,
SYSM_PXI_COMM_DISABLE_HOTSW = 1,
SYSM_PXI_COMM_NUM
}SYSMPXICommand;
/*---------------------------------------------------------------------------*
関数定義
*---------------------------------------------------------------------------*/
// PXI初期化
#ifdef SDK_ARM9
void SYSM_InitPXI( void );
#else // SDK_ARM7
void SYSM_InitPXI( u32 mcu_prio );
#endif // SDK_ARM7
// PXIコマンド送信
BOOL SYSMi_TrySendPXICommand( SYSMPXICommand cmd, u16 data );
BOOL SYSMi_SendPXICommand( SYSMPXICommand command, u16 data );
// PXIコマンド受信
void SYSMi_PXIFifoRecvCallback( PXIFifoTag tag, u32 data, BOOL err );
#ifdef __cplusplus
}
#endif
#endif // SYSM_COMMON_PXI_H_