@@ -45,6 +45,7 @@ enum ConnectionMessage {
4545 request : SdoRequest ,
4646 response_tx : oneshot:: Sender < Result < SdoResponse , SdoError > > ,
4747 } ,
48+ #[ allow( dead_code) ] // Reserved for future SDO write feature
4849 SdoWriteRequest {
4950 node_id : u8 ,
5051 request : SdoWriteRequest ,
@@ -198,6 +199,7 @@ impl CANopenConnection {
198199}
199200
200201/// TPDO Mapping Entry - defines one object to map into a TPDO
202+ #[ allow( dead_code) ] // Reserved for future TPDO configuration feature
201203#[ derive( Debug , Clone ) ]
202204pub struct TpdoMapping {
203205 pub index : u16 ,
@@ -206,6 +208,7 @@ pub struct TpdoMapping {
206208}
207209
208210/// TPDO Configuration Parameters
211+ #[ allow( dead_code) ] // Reserved for future TPDO configuration feature
209212#[ derive( Debug , Clone ) ]
210213pub struct TpdoConfigParams {
211214 pub tpdo_number : u8 , // 1-4 typically (maps to 0x1800-0x1803 and 0x1A00-0x1A03)
@@ -243,6 +246,7 @@ impl CANopenNodeHandle {
243246 }
244247
245248 /// Send an SDO write request to this node
249+ #[ allow( dead_code) ] // Reserved for future SDO write feature
246250 pub async fn sdo_write ( & self , request : SdoWriteRequest ) -> Result < ( ) , CANopenError > {
247251 let ( response_tx, response_rx) = oneshot:: channel ( ) ;
248252
@@ -261,6 +265,7 @@ impl CANopenNodeHandle {
261265 }
262266
263267 /// Configure a TPDO on this node via SDO writes
268+ #[ allow( dead_code) ] // Reserved for future TPDO configuration feature
264269 pub async fn configure_tpdo ( & self , config : TpdoConfigParams ) -> Result < ( ) , CANopenError > {
265270 if config. tpdo_number < 1 || config. tpdo_number > 4 {
266271 return Err ( CANopenError :: RequestFailed (
0 commit comments