<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IMU sensor in S32K</title>
    <link>https://community.nxp.com/t5/S32K/IMU-sensor/m-p/1854668#M34652</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; i'm working on&amp;nbsp;imu sensor for that i'm using s32k324 Microcontroller and&amp;nbsp;ASM330LHH stm semiconductor sensor. and&amp;nbsp; i'm using SPI communiction for tx and rx data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i'm using this api for tx and rx data between microcontroller and imu sensor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;driver API for example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;" Lpspi_Ip_StatusType&amp;nbsp; Lpspi_Ip_SyncTransmit(const Lpspi_Ip_ExternalDeviceType *ExternalDevice, const uint8 *TxBuffer, uint8 *RxBuffer, uint16 Length, uint32 TimeOut )"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;API CALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* hanlde : const Lpspi_Ip_ExternalDeviceType&lt;BR /&gt;reg : WHO_AM_I register address&lt;BR /&gt;bufp : rx buffer&lt;BR /&gt;len : data to be send&lt;BR /&gt;TIMEOUT : 1000&lt;BR /&gt;*/&lt;BR /&gt;uint8_t reg = (0x0f | 0x80);&lt;BR /&gt;uint8_t buf = 0;&lt;BR /&gt;Lpspi_Ip_SyncTransmit(handle, &amp;amp;reg, &amp;amp;bufp, len, 1000);&lt;/P&gt;&lt;P&gt;so my question data is not receving bufp. but i want data in this 8 bit varible uint8_t bufp; not in "bufp[1]";&lt;/P&gt;&lt;P&gt;why i'm saying because i tried and tested code using "uint8_t bufp[2];" array for so i got 0x6b in "bufp[1];".&lt;/P&gt;&lt;P&gt;tell me how i will get output in this "uint8_t bufp;" 8 bit varible ?&lt;/P&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
    <pubDate>Thu, 25 Apr 2024 10:23:36 GMT</pubDate>
    <dc:creator>semiconductor_user</dc:creator>
    <dc:date>2024-04-25T10:23:36Z</dc:date>
    <item>
      <title>IMU sensor</title>
      <link>https://community.nxp.com/t5/S32K/IMU-sensor/m-p/1854668#M34652</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; i'm working on&amp;nbsp;imu sensor for that i'm using s32k324 Microcontroller and&amp;nbsp;ASM330LHH stm semiconductor sensor. and&amp;nbsp; i'm using SPI communiction for tx and rx data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i'm using this api for tx and rx data between microcontroller and imu sensor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;driver API for example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;" Lpspi_Ip_StatusType&amp;nbsp; Lpspi_Ip_SyncTransmit(const Lpspi_Ip_ExternalDeviceType *ExternalDevice, const uint8 *TxBuffer, uint8 *RxBuffer, uint16 Length, uint32 TimeOut )"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;API CALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* hanlde : const Lpspi_Ip_ExternalDeviceType&lt;BR /&gt;reg : WHO_AM_I register address&lt;BR /&gt;bufp : rx buffer&lt;BR /&gt;len : data to be send&lt;BR /&gt;TIMEOUT : 1000&lt;BR /&gt;*/&lt;BR /&gt;uint8_t reg = (0x0f | 0x80);&lt;BR /&gt;uint8_t buf = 0;&lt;BR /&gt;Lpspi_Ip_SyncTransmit(handle, &amp;amp;reg, &amp;amp;bufp, len, 1000);&lt;/P&gt;&lt;P&gt;so my question data is not receving bufp. but i want data in this 8 bit varible uint8_t bufp; not in "bufp[1]";&lt;/P&gt;&lt;P&gt;why i'm saying because i tried and tested code using "uint8_t bufp[2];" array for so i got 0x6b in "bufp[1];".&lt;/P&gt;&lt;P&gt;tell me how i will get output in this "uint8_t bufp;" 8 bit varible ?&lt;/P&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Thu, 25 Apr 2024 10:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IMU-sensor/m-p/1854668#M34652</guid>
      <dc:creator>semiconductor_user</dc:creator>
      <dc:date>2024-04-25T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMU sensor</title>
      <link>https://community.nxp.com/t5/S32K/IMU-sensor/m-p/1855121#M34682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207633"&gt;@semiconductor_user&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can try one of the examples from the RTD package (&lt;EM&gt;Lpspi_Flexio_Ip_Transfer_S32K344&lt;/EM&gt; or &lt;EM&gt;Spi_Transfer_S32K344&lt;/EM&gt;). You can modify the transfer buffer and test the API functions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1714079881500.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/275971i83CEE689DF259F3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1714079881500.png" alt="Julin_AragnM_1-1714079881500.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 21:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/IMU-sensor/m-p/1855121#M34682</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-04-25T21:18:14Z</dc:date>
    </item>
  </channel>
</rss>

