theCore C++ embedded framework
ecl::sdspi_state Struct Reference

Struct to hold SDSPI driver state, resulting from SDSPI API calls. More...

#include </home/travis/build/forGGe/theCore/dev/sdspi/export/dev/sdspi.hpp>

Public Member Functions

bool is_ok () const
 
void clear ()
 
bool err_send_resp_expired () const
 
bool err_recv_tok_expired () const
 
bool err_invalid_state () const
 
bool err_pattern_mismatch () const
 
bool err_voltage_range () const
 
bool err_init_expired () const
 
bool err_r1_expired () const
 
bool err_unsup_card () const
 
void set_err_send_resp_expired ()
 
void set_err_recv_tok_expired ()
 
void set_err_invalid_state ()
 
void set_err_pattern_mismatch ()
 
void set_err_voltage_range ()
 
void set_err_init_expired ()
 
void set_err_r1_expired ()
 
void set_err_unsup_card ()
 
bool idle_state () const
 
bool err_erase_reset () const
 
bool err_illegal_cmd () const
 
bool err_com_crc () const
 
bool err_erase_seq () const
 
bool err_addr_err () const
 
bool err_param () const
 
void set_r1_flags (uint8_t r1)
 
void set_idle_state ()
 
void set_err_erase_reset ()
 
void set_err_illegal_cmd ()
 
void set_err_com_crc ()
 
void set_err_erase_seq ()
 
void set_err_addr_err ()
 
void set_err_param ()
 
bool err_generic () const
 
bool err_cc () const
 
bool err_ecc () const
 
bool err_out_of_rage () const
 
bool err_lock () const
 
void set_recv_tok_flags (uint8_t tok)
 
void set_err_generic ()
 
void set_err_cc ()
 
void set_err_ecc ()
 
void set_err_out_of_rage ()
 
void set_err_lock ()
 
bool err_crc () const
 
bool err_write () const
 
void set_send_resp_flags (uint8_t f)
 
void set_err_crc ()
 
void set_err_write ()
 

Data Fields

uint8_t err_state
 
uint8_t r1_resp
 
uint8_t recv_tok
 
uint8_t send_resp
 

Friends

template<class dev >
ostream< dev > & operator<< (ostream< dev > &left, const sdspi_state &s)
 Prints contents of the struct to the specified stream. More...
 

Detailed Description

Struct to hold SDSPI driver state, resulting from SDSPI API calls.

Used primarily for debugging.

Member Function Documentation

◆ is_ok()

bool ecl::sdspi_state::is_ok ( ) const
inline

◆ clear()

void ecl::sdspi_state::clear ( )
inline

◆ err_send_resp_expired()

bool ecl::sdspi_state::err_send_resp_expired ( ) const
inline

◆ err_recv_tok_expired()

bool ecl::sdspi_state::err_recv_tok_expired ( ) const
inline

◆ err_invalid_state()

bool ecl::sdspi_state::err_invalid_state ( ) const
inline

◆ err_pattern_mismatch()

bool ecl::sdspi_state::err_pattern_mismatch ( ) const
inline

◆ err_voltage_range()

bool ecl::sdspi_state::err_voltage_range ( ) const
inline

◆ err_init_expired()

bool ecl::sdspi_state::err_init_expired ( ) const
inline

◆ err_r1_expired()

bool ecl::sdspi_state::err_r1_expired ( ) const
inline

◆ err_unsup_card()

bool ecl::sdspi_state::err_unsup_card ( ) const
inline

◆ set_err_send_resp_expired()

void ecl::sdspi_state::set_err_send_resp_expired ( )
inline

◆ set_err_recv_tok_expired()

void ecl::sdspi_state::set_err_recv_tok_expired ( )
inline

◆ set_err_invalid_state()

void ecl::sdspi_state::set_err_invalid_state ( )
inline

◆ set_err_pattern_mismatch()

void ecl::sdspi_state::set_err_pattern_mismatch ( )
inline

◆ set_err_voltage_range()

void ecl::sdspi_state::set_err_voltage_range ( )
inline

◆ set_err_init_expired()

void ecl::sdspi_state::set_err_init_expired ( )
inline

◆ set_err_r1_expired()

void ecl::sdspi_state::set_err_r1_expired ( )
inline

◆ set_err_unsup_card()

void ecl::sdspi_state::set_err_unsup_card ( )
inline

◆ idle_state()

bool ecl::sdspi_state::idle_state ( ) const
inline

◆ err_erase_reset()

bool ecl::sdspi_state::err_erase_reset ( ) const
inline

◆ err_illegal_cmd()

bool ecl::sdspi_state::err_illegal_cmd ( ) const
inline

◆ err_com_crc()

bool ecl::sdspi_state::err_com_crc ( ) const
inline

◆ err_erase_seq()

bool ecl::sdspi_state::err_erase_seq ( ) const
inline

◆ err_addr_err()

bool ecl::sdspi_state::err_addr_err ( ) const
inline

◆ err_param()

bool ecl::sdspi_state::err_param ( ) const
inline

◆ set_r1_flags()

void ecl::sdspi_state::set_r1_flags ( uint8_t  r1)
inline

◆ set_idle_state()

void ecl::sdspi_state::set_idle_state ( )
inline

◆ set_err_erase_reset()

void ecl::sdspi_state::set_err_erase_reset ( )
inline

◆ set_err_illegal_cmd()

void ecl::sdspi_state::set_err_illegal_cmd ( )
inline

◆ set_err_com_crc()

void ecl::sdspi_state::set_err_com_crc ( )
inline

◆ set_err_erase_seq()

void ecl::sdspi_state::set_err_erase_seq ( )
inline

◆ set_err_addr_err()

void ecl::sdspi_state::set_err_addr_err ( )
inline

◆ set_err_param()

void ecl::sdspi_state::set_err_param ( )
inline

◆ err_generic()

bool ecl::sdspi_state::err_generic ( ) const
inline

◆ err_cc()

bool ecl::sdspi_state::err_cc ( ) const
inline

◆ err_ecc()

bool ecl::sdspi_state::err_ecc ( ) const
inline

◆ err_out_of_rage()

bool ecl::sdspi_state::err_out_of_rage ( ) const
inline

◆ err_lock()

bool ecl::sdspi_state::err_lock ( ) const
inline

◆ set_recv_tok_flags()

void ecl::sdspi_state::set_recv_tok_flags ( uint8_t  tok)
inline

◆ set_err_generic()

void ecl::sdspi_state::set_err_generic ( )
inline

◆ set_err_cc()

void ecl::sdspi_state::set_err_cc ( )
inline

◆ set_err_ecc()

void ecl::sdspi_state::set_err_ecc ( )
inline

◆ set_err_out_of_rage()

void ecl::sdspi_state::set_err_out_of_rage ( )
inline

◆ set_err_lock()

void ecl::sdspi_state::set_err_lock ( )
inline

◆ err_crc()

bool ecl::sdspi_state::err_crc ( ) const
inline

◆ err_write()

bool ecl::sdspi_state::err_write ( ) const
inline

◆ set_send_resp_flags()

void ecl::sdspi_state::set_send_resp_flags ( uint8_t  f)
inline

◆ set_err_crc()

void ecl::sdspi_state::set_err_crc ( )
inline

◆ set_err_write()

void ecl::sdspi_state::set_err_write ( )
inline

Friends And Related Function Documentation

◆ operator<<

template<class dev >
ostream<dev>& operator<< ( ostream< dev > &  left,
const sdspi_state s 
)
friend

Prints contents of the struct to the specified stream.

Field Documentation

◆ err_state

uint8_t ecl::sdspi_state::err_state

◆ r1_resp

uint8_t ecl::sdspi_state::r1_resp

◆ recv_tok

uint8_t ecl::sdspi_state::recv_tok

◆ send_resp

uint8_t ecl::sdspi_state::send_resp

The documentation for this struct was generated from the following file: