| CMSIS-Driver Peripheral Interface for Middleware and Application Code |

Loading...
Searching...
No Matches
Macros
SPI Miscellaneous Controls
SPI Interface » SPI Control Codes

Specifies additional miscellaneous controls. More...

## Macros
#define | ARM_SPI_SET_BUS_SPEED (0x10UL << ARM_SPI_CONTROL_Pos)
| Set Bus Speed in bps; arg = value.
#define | ARM_SPI_GET_BUS_SPEED (0x11UL << ARM_SPI_CONTROL_Pos)
| Get Bus Speed in bps.
#define | ARM_SPI_SET_DEFAULT_TX_VALUE (0x12UL << ARM_SPI_CONTROL_Pos)
| Set default Transmit value; arg = value.
#define | ARM_SPI_CONTROL_SS (0x13UL << ARM_SPI_CONTROL_Pos)
| Control Slave Select; arg: 0=inactive, 1=active.
#define | ARM_SPI_ABORT_TRANSFER (0x14UL << ARM_SPI_CONTROL_Pos)
| Abort current data transfer.

## Description

Specifies additional miscellaneous controls.

## Macro Definition Documentation

## ◆ ARM_SPI_SET_BUS_SPEED

#define ARM_SPI_SET_BUS_SPEED (0x10UL << ARM_SPI_CONTROL_Pos)

Set Bus Speed in bps; arg = value.

See also
  ARM_SPI_Control

## ◆ ARM_SPI_GET_BUS_SPEED

#define ARM_SPI_GET_BUS_SPEED (0x11UL << ARM_SPI_CONTROL_Pos)

Get Bus Speed in bps.

See also
  ARM_SPI_Control

## ◆ ARM_SPI_SET_DEFAULT_TX_VALUE

#define ARM_SPI_SET_DEFAULT_TX_VALUE (0x12UL << ARM_SPI_CONTROL_Pos)

Set default Transmit value; arg = value.

See also
  ARM_SPI_Control

## ◆ ARM_SPI_CONTROL_SS

#define ARM_SPI_CONTROL_SS (0x13UL << ARM_SPI_CONTROL_Pos)

Control Slave Select; arg: 0=inactive, 1=active.

See also
  ARM_SPI_Control

## ◆ ARM_SPI_ABORT_TRANSFER

#define ARM_SPI_ABORT_TRANSFER (0x14UL << ARM_SPI_CONTROL_Pos)

Abort current data transfer.

See also
  ARM_SPI_Control