<pre name="code" class="objc">void as3911SetFrameDelayTime(u32 frameDelayTime)
{
u16 gptValue;
as3911FrameDelayTime = frameDelayTime;
/* Start GPT Timer only with start command */
as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00
gptValue = (u16) (as3911FrameDelayTime >> 3);
as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF));
as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));
}
void as3911SetFrameDelayTime(u32 frameDelayTime){ u16 gptValue; as3911FrameDelayTime = frameDelayTime; /* Start GPT Timer only with start command */ as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00 gptValue = (u16) (as3911FrameDelayTime >> 3); as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF)); as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));}
void as3911SetFrameDelayTime(u32 frameDelayTime)
{
u16 gptValue;
as3911FrameDelayTime = frameDelayTime;
/* Start GPT Timer only with start command */
as3911ModifyRegister(AS3911_REG_GPT_CONF, 0xE0, 0x20); // 0x00
gptValue = (u16) (as3911FrameDelayTime >> 3);
as3911WriteRegister(AS3911_REG_GPT1, (u8) ((gptValue >> 8) & 0xFF));
as3911WriteRegister(AS3911_REG_GPT2, (u8) (gptValue & 0xFF));
}