# lv_pxp_utils.h (/api/draw/nxp/pxp/lv_pxp_utils_h)



<ApiSummary functions="4" macros="2" />

Functions [#functions]

<ApiTabs items="[&#x22;Getters (3)&#x22;,&#x22;Other (1)&#x22;]">
  <ApiTab value="Getters (3)">
    <ApiMember kind="function" name="pxp_get_out_px_format" file="draw/nxp/pxp/lv_pxp_utils.h" line="59" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L59">
      pxp_get_out_px_format [#pxp_get_out_px_format]

      ```c title=" " lineNumbers=1
      pxp_output_pixel_format_t pxp_get_out_px_format(lv_color_format_t cf)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name | Type                                 |
      | ---- | ------------------------------------ |
      | `cf` | <ApiLink name="lv_color_format_t" /> |
    </ApiMember>

    <ApiMember kind="function" name="pxp_get_as_px_format" file="draw/nxp/pxp/lv_pxp_utils.h" line="61" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L61">
      pxp_get_as_px_format [#pxp_get_as_px_format]

      ```c title=" " lineNumbers=1
      pxp_as_pixel_format_t pxp_get_as_px_format(lv_color_format_t cf)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name | Type                                 |
      | ---- | ------------------------------------ |
      | `cf` | <ApiLink name="lv_color_format_t" /> |
    </ApiMember>

    <ApiMember kind="function" name="pxp_get_ps_px_format" file="draw/nxp/pxp/lv_pxp_utils.h" line="64" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L64">
      pxp_get_ps_px_format [#pxp_get_ps_px_format]

      ```c title=" " lineNumbers=1
      pxp_ps_pixel_format_t pxp_get_ps_px_format(lv_color_format_t cf)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name | Type                                 |
      | ---- | ------------------------------------ |
      | `cf` | <ApiLink name="lv_color_format_t" /> |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (1)">
    <ApiMember kind="function" name="pxp_buf_aligned" file="draw/nxp/pxp/lv_pxp_utils.h" line="66" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L66">
      pxp_buf_aligned [#pxp_buf_aligned]

      ```c title=" " lineNumbers=1
      bool pxp_buf_aligned(const void *buf, uint32_t stride)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                        |
      | -------- | --------------------------- |
      | `buf`    | `const void *`              |
      | `stride` | <ApiLink name="uint32_t" /> |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Macros [#macros]

<ApiMember kind="macro" name="PXP_ASSERT" file="draw/nxp/pxp/lv_pxp_utils.h" line="34" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L34">
  PXP_ASSERT [#pxp_assert]

  ```c title=" " lineNumbers=1
  #define PXP_ASSERT(expr) \
      LV_ASSERT(expr)
  ```

  Copyright 2023-2024 NXP

  SPDX-License-Identifier: MIT
</ApiMember>

<ApiMember kind="macro" name="PXP_ASSERT_MSG" file="draw/nxp/pxp/lv_pxp_utils.h" line="39" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/nxp/pxp/lv_pxp_utils.h#L39">
  PXP_ASSERT_MSG [#pxp_assert_msg]

  ```c title=" " lineNumbers=1
  #define PXP_ASSERT_MSG(expr, msg) \
      do { \
              if(!(expr)) { \
                  LV_LOG_ERROR(msg); \
                  PXP_ASSERT(false); \
              } \
          } while(0)
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;fsl_pxp.h&#x22;, &#x22;lv_color.h&#x22;]" transitiveIncludes="[&#x22;lv_assert.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_types.h&#x22;]" />
