pub unsafe extern "C" fn vision_create_color_code(
    port: u8,
    sig_id1: u32,
    sig_id2: u32,
    sig_id3: u32,
    sig_id4: u32,
    sig_id5: u32
) -> vision_color_code_t
Expand description

Creates a color code that represents a combination of the given signature IDs. If fewer than 5 signatures are to be a part of the color code, pass 0 for the additional function parameters.

This function uses the following values of errno when an error state is reached: EINVAL - Fewer than two signatures have been provided or one of the signatures is out of its [1-7] range (or 0 when omitted).

\param port The V5 port number from 1-21 \param sig_id1 The first signature id [1-7] to add to the color code \param sig_id2 The second signature id [1-7] to add to the color code \param sig_id3 The third signature id [1-7] to add to the color code \param sig_id4 The fourth signature id [1-7] to add to the color code \param sig_id5 The fifth signature id [1-7] to add to the color code

\return A vision_color_code_t object containing the color code information.