openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
lpc17_ssp.c File Reference

SSP driver for LPC17xx. More...

#include "port.h"
#include "string.h"
#include "pin_mapping.h"
Include dependency graph for lpc17_ssp.c:

Functions

void SSP0_IRQHandler (void)
 
void SSP1_IRQHandler (void)
 
void ssp_ssel_control (uint8_t id, uint8_t state)
 Function that controls the Slave Select (SSEL) signal This pin is controlled manually because the internal SSP driver resets the SSEL pin every 8 bits that are transfered.
 
void ssp_init (uint8_t id, uint32_t bitrate, uint8_t frame_sz, bool master_mode, bool poll)
 
void ssp_write_read (uint8_t id, uint8_t *tx_buf, uint32_t tx_len, uint8_t *rx_buf, uint32_t rx_len, uint32_t timeout)
 

Variables

uint8_t * tx_ssp
 
uint8_t * rx_ssp
 

Detailed Description

SSP driver for LPC17xx.

SSP driver definitions for LPC17xx.

Author
Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS
Date
March 2016
Author
Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS

Function Documentation

◆ SSP0_IRQHandler()

void SSP0_IRQHandler ( void )

◆ SSP1_IRQHandler()

void SSP1_IRQHandler ( void )

◆ ssp_init()

void ssp_init ( uint8_t id,
uint32_t bitrate,
uint8_t frame_sz,
bool master_mode,
bool poll )

◆ ssp_ssel_control()

void ssp_ssel_control ( uint8_t id,
uint8_t state )

Function that controls the Slave Select (SSEL) signal This pin is controlled manually because the internal SSP driver resets the SSEL pin every 8 bits that are transfered.

◆ ssp_write_read()

void ssp_write_read ( uint8_t id,
uint8_t * tx_buf,
uint32_t tx_len,
uint8_t * rx_buf,
uint32_t rx_len,
uint32_t timeout )

Variable Documentation

◆ rx_ssp

uint8_t* rx_ssp

◆ tx_ssp

uint8_t* tx_ssp