SSP driver for LPC17xx.
More...
#include "port.h"
#include "string.h"
#include "pin_mapping.h"
|
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) |
|
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
◆ 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 ) |
◆ rx_ssp
◆ tx_ssp