|
31 | 31 | //| :param ~microcontroller.Pin miso: The pin transferring data from the secondary to the main |
32 | 32 | //| :param ~microcontroller.Pin ss: The secondary selection pin""" |
33 | 33 | //| ... |
| 34 | +//| |
34 | 35 | static mp_obj_t spitarget_spi_target_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) { |
35 | 36 | spitarget_spi_target_obj_t *self = mp_obj_malloc(spitarget_spi_target_obj_t, &spitarget_spi_target_type); |
36 | 37 | enum { ARG_sck, ARG_mosi, ARG_miso, ARG_ss }; |
@@ -90,6 +91,7 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(spitarget_spi_target___exit___obj, 4, |
90 | 91 | //| :param bytearray miso_packet: Packet data to be sent from secondary to main on next request. |
91 | 92 | //| :param bytearray mosi_packet: Packet to be filled with data from main on next request. |
92 | 93 | //| """ |
| 94 | +//| |
93 | 95 | static mp_obj_t spitarget_spi_target_load_packet(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { |
94 | 96 | mp_check_self(mp_obj_is_type(pos_args[0], &spitarget_spi_target_type)); |
95 | 97 | spitarget_spi_target_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]); |
@@ -126,6 +128,7 @@ static MP_DEFINE_CONST_FUN_OBJ_KW(spitarget_spi_target_load_packet_obj, 1, spita |
126 | 128 | //| :return: True if the transfer is complete, or False if no response received before the timeout |
127 | 129 | //| """ |
128 | 130 | //| |
| 131 | +//| |
129 | 132 | static mp_obj_t spitarget_spi_target_wait_transfer(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { |
130 | 133 | mp_check_self(mp_obj_is_type(pos_args[0], &spitarget_spi_target_type)); |
131 | 134 | spitarget_spi_target_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]); |
|
0 commit comments