Buy Contact NSDSP Home

nsdsp_session_set_smp

This function sets SMP - an SPI parameter.

Syntax

int nsdsp_session_set_smp(
        nsdsp_session_t   session,
        int               smp
);

Parameters

session - a reference to the Session Object

smp - SMP setting. If SMP is one (recommended), the receiver samples the data line half a clock cycle later. If SMP is zero, the receiver samples normally.

Return

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

Notes

The SMP setting affects reception, but does not affect transmission

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 Contact Us Purchase/View Cart

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