Buy Contact Devices Home

nsdsp_session_set_cke

This function sets CKE - an SPI parameter.

Syntax

int nsdsp_session_set_cke(
        nsdsp_session_t   session,
        int               cke
);

Parameters

session - a reference to the Session Object

cke - CKE setting. If CKE is zero, SPI data should change at the rising edge of the clock and should be sampled at the falling edge of the clock. If CKE is one, SPI data should change at the falling edge of the clock and should be sampled at the rising edge of the clock.

Return

The function returns non-zero if the command to change CKE has been succesfully queued, or zero otherwise

Notes

This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.

 

Supported session types: SPI

Minimum library version - 163

Northern Software Home NSDSP Supported Devices Contact Us Purchase/View Cart

© 2007-2026 Northern Software Inc. All Rights Reserved.