Function ctru_sys::IPC_MakeHeader

source ·
pub unsafe extern "C" fn IPC_MakeHeader(
    command_id: u16_,
    normal_params: c_uint,
    translate_params: c_uint
) -> u32_
Expand description

Creates a command header to be used for IPC

§Arguments

  • command_id - ID of the command to create a header for.
  • normal_params - Size of the normal parameters in words. Up to 63.
  • translate_params - Size of the translate parameters in words. Up to 63.

§Returns

The created IPC header.

Normal parameters are sent directly to the process while the translate parameters might go through modifications and checks by the kernel. The translate parameters are described by headers generated with the IPC_Desc_* functions.

Note: While #normal_params is equivalent to the number of normal parameters, #translate_params includes the size occupied by the translate parameters headers.