1 Reply Latest reply on Mar 1, 2018 2:47 AM by RaktimR_11

    I2S example for BCM907WCD2

      Can anyone help me with a Sample Code for receiving Audio Data from a Audio Codec over I2S for BCM43907.

      OR_REG(I2S_CONTROL(port)->osh, &I2S_REGS(port)->i2scontrol, bits); // I am Getting Error In this Line => in the Code below

       

      I am using platform_i2s.c

      static wiced_result_t i2s_peripheral_transfer_enable( platform_i2s_port_t port, platform_i2s_direction_t dir, uint32_t bits, wiced_bool_t on)

      {

          if (on == WICED_TRUE)

          {

              OR_REG(I2S_CONTROL(port)->osh, &I2S_REGS(port)->i2scontrol, bits); // I am Getting Error In this Line

              if (I2S_CONTROL(port)->i2s_spdif_mode == WICED_I2S_SPDIF_MODE_ON)

              {

                  if (dir == PLATFORM_I2S_READ)

                  {

                      OR_REG(I2S_CONTROL(port)->osh, &I2S_REGS(port)->srxctrl, I2S_SRXC_RXEN);

                  }

                  else

                  {

                      OR_REG(I2S_CONTROL(port)->osh, &I2S_REGS(port)->stxctrl, I2S_STXC_TXEN);

                  }

              }

          }

      }

        • 1. Re: I2S example for BCM907WCD2
          RaktimR_11

          There is no code example available for receiving audio data over I2S interface. You have to create your own example with the help of i2s platform files. You can look into 43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/platform_i2s.h for the API declarations and the corresponding source also is exposed in 43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/platform_i2s.c. Could you test the same in WICED Studio 6.1 and let us know what is the error code you are receiving ?