Airoha AR1010 driver & demo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Nikita Kareev, created: 2009-06-14 | updated: 2013-06-17

Simple AR1010 I2C driver. Can set volume and frequency. Based on Basic_I2C_Driver.

 

Original File Upload
AttachmentSize
AR1010_Demo_-_Archive__Date_2009.06.14__Time_22.57.zip23.97 KB

Comments

[originally posted by Anonymous on 2010-11-22 06:55:06]: There is an error on the setVolume method. Here is the corrected version. Else, working A1! PUB SetVolume(vol) | regData vol := 0 #> vol <# 21 Mute(true) Regs[3] := ReadReg(3) Regs[14] := ReadReg(14) Regs[3] := (Regs[3] & $F87F) | (AR1010Vol1[vol] << 7) WriteReg(3, Regs[3]) Regs[14] := (Regs[14] & $0FFF)| (AR1010Vol2[vol] << 12) WriteReg(14, Regs[14]) Mute(false)