NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
lpc17xx_ssp.c File Reference
: Contains all functions support for SSP firmware library on LPC17xx More...
Go to the source code of this file.
Functions | |
static int32_t | SSP_getNum (LPC_SSP_TypeDef *SSPx) |
Convert from SSP peripheral to number. | |
void | SSP_IntHandler (LPC_SSP_TypeDef *SSPx) |
Standard Private SSP Interrupt handler. | |
void | SSP_SetClock (LPC_SSP_TypeDef *SSPx, uint32_t target_clock) |
Setup clock rate for SSP device. | |
void | SSP_DeInit (LPC_SSP_TypeDef *SSPx) |
De-initializes the SSPx peripheral registers to their default reset values. | |
void | SSP_Init (LPC_SSP_TypeDef *SSPx, SSP_CFG_Type *SSP_ConfigStruct) |
Initializes the SSPx peripheral according to the specified parameters in the SSP_ConfigStruct. | |
void | SSP_ConfigStructInit (SSP_CFG_Type *SSP_InitStruct) |
Fills each SSP_InitStruct member with its default value:
| |
void | SSP_Cmd (LPC_SSP_TypeDef *SSPx, FunctionalState NewState) |
Enable or disable SSP peripheral's operation. | |
void | SSP_LoopBackCmd (LPC_SSP_TypeDef *SSPx, FunctionalState NewState) |
Enable or disable Loop Back mode function in SSP peripheral. | |
void | SSP_SlaveOutputCmd (LPC_SSP_TypeDef *SSPx, FunctionalState NewState) |
Enable or disable Slave Output function in SSP peripheral. | |
void | SSP_SendData (LPC_SSP_TypeDef *SSPx, uint16_t Data) |
Transmit a single data through SSPx peripheral. | |
uint16_t | SSP_ReceiveData (LPC_SSP_TypeDef *SSPx) |
Receive a single data from SSPx peripheral. | |
int32_t | SSP_ReadWrite (LPC_SSP_TypeDef *SSPx, SSP_DATA_SETUP_Type *dataCfg,\SSP_TRANSFER_Type xfType) |
SSP Read write data function. | |
FlagStatus | SSP_GetStatus (LPC_SSP_TypeDef *SSPx, uint32_t FlagType) |
Checks whether the specified SSP status flag is set or not. | |
void | SSP_IntConfig (LPC_SSP_TypeDef *SSPx, uint32_t IntType, FunctionalState NewState) |
Enable or disable specified interrupt type in SSP peripheral. | |
IntStatus | SSP_GetRawIntStatus (LPC_SSP_TypeDef *SSPx, uint32_t RawIntType) |
Check whether the specified Raw interrupt status flag is set or not. | |
IntStatus | SSP_GetIntStatus (LPC_SSP_TypeDef *SSPx, uint32_t IntType) |
Check whether the specified interrupt status flag is set or not. | |
void | SSP_ClearIntPending (LPC_SSP_TypeDef *SSPx, uint32_t IntType) |
Clear specified interrupt pending in SSP peripheral. | |
void | SSP_DMACmd (LPC_SSP_TypeDef *SSPx, uint32_t DMAMode, FunctionalState NewState) |
Enable/Disable DMA function for SSP peripheral. | |
void | SSP0_StdIntHandler (void) |
Standard SSP0 Interrupt handler. | |
void | SSP1_StdIntHandler (void) |
Standard SSP1 Interrupt handler. |
Detailed Description
: Contains all functions support for SSP firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 9. April. 2009
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc17xx_ssp.c.
Generated on Tue Jul 12 2022 17:06:02 by 1.7.2