Update more converted IO
This commit is contained in:
@@ -3,23 +3,21 @@
|
||||
|
||||
namespace JabyEngine {
|
||||
namespace Periphery_IO {
|
||||
namespace Value = Periphery_IO_Values;
|
||||
|
||||
struct JOY_STAT_IO : public IOPort<Value::JOY_STAT> {
|
||||
struct JOY_STAT_IO : public IOPort<Periphery_IO_Values::JOY_STAT> {
|
||||
inline bool has_response() const {
|
||||
return this->read().is_set(Value::JOY_STAT::RXFifoNonEmpty);
|
||||
return this->read().is_set(Periphery_IO_Values::JOY_STAT::RXFifoNonEmpty);
|
||||
}
|
||||
|
||||
inline bool is_ready_transfer() const {
|
||||
return this->read().is_set(Value::JOY_STAT::TXReadyFinished);
|
||||
return this->read().is_set(Periphery_IO_Values::JOY_STAT::TXReadyFinished);
|
||||
}
|
||||
};
|
||||
|
||||
using JOY_BAUD_IO = IOPort<Value::JOY_BAUD>;
|
||||
using JOY_CTRL_IO = IOPort<Value::JOY_CTRL>;
|
||||
using JOY_MODE_IO = IOPort<Value::JOY_MODE>;
|
||||
using JOY_RX_DATA_IO = IOPort<Value::JOY_RX_DATA>;
|
||||
using JOY_TX_DATA_IO = IOPort<Value::JOY_TX_DATA>;
|
||||
using JOY_BAUD_IO = IOPort<Periphery_IO_Values::JOY_BAUD>;
|
||||
using JOY_CTRL_IO = IOPort<Periphery_IO_Values::JOY_CTRL>;
|
||||
using JOY_MODE_IO = IOPort<Periphery_IO_Values::JOY_MODE>;
|
||||
using JOY_RX_DATA_IO = IOPort<Periphery_IO_Values::JOY_RX_DATA>;
|
||||
using JOY_TX_DATA_IO = IOPort<Periphery_IO_Values::JOY_TX_DATA>;
|
||||
|
||||
static auto& JOY_TX_DATA = __new_declare_io_port(JOY_TX_DATA_IO, 0x1F801040);
|
||||
static const auto& JOY_RX_DATA = __new_declare_io_port(JOY_RX_DATA_IO, 0x1F801040);
|
||||
|
Reference in New Issue
Block a user