English
Language : 

UM0097 Datasheet, PDF (131/229 Pages) STMicroelectronics – STR71x firmware library
UM0097
Peripheral firmware overview
BSPI_8bLEn
Function Name
Function Prototype
Behavior Description
Input Parameter 1
Input Parameter 2
Output Parameter
Return Value
Required Preconditions
Called Functions
BSPI_8bLEn
void BSPI_8bLEn(BSPI_TypeDef *BSPIx,
FunctionalState NewState);
Sets the word length of the receive FIFO and transmit data
registers to either 8 or 16 bits.
BSPIx: selects BSPI peripheral to be configured where x can be 0
or 1.
NewState: specifies if the word length is 8 or 16 bits.
– ENABLE: enables setting the word length to 8 bits
– DISABLE: disables setting the word length to 8 bits: the word
length will be set to 16 bits
None
None
None
None
Example:
This example illustrates how to set word length to16 bits for the BSPI0 peripheral:
{
...
BSPI_8bLEn(BSPI0, DISABLE);
...
}
131/229