Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <file_config.h> BOOL SetSS ( U32 ss); /* Enable/Disable SPI Slave Select */
The function SetSS enables or disables Slave Select on the SPI interface. The parameter ss specifies the state of the Slave Select signal.
The function is part of the SPI Driver. The prototype is defined in the file File_Config.h. Developers must customize the function.
spi.BusSpeed, spi.CheckMedia, spi.Init, spi.RecBuf, spi.Send, spi.SendBuf, spi.UnInit
/* SPI Device Driver Control Block */ SPI_DRV spi0_drv = { Init, UnInit, Send, SendBuf, RecBuf, BusSpeed, SetSS, CheckMedia }; /* Enable/Disable SPI Chip Select (drive it high or low). */ static BOOL SetSS (U32 ss) { if (ss) { IOSET0 = 1<<20; /* SSEL is GPIO, output set to high. */ } else { IOCLR0 = 1<<20; /* SSEL is GPIO, output set to low. */ } return (__TRUE); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.