Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/18/05 17:17
Read: times


 
#85205 - something like this...
Responding to: ???'s previous message
Neil Kurzman said:
You can use a switch stament in the function.
Bit indirection in the 51' would be great, but they did not think so 24 years ago.

// Perform a Reset on the specified 1-Wire net
unsigned char Ow_Reset( unsigned char net_num )
{
   switch( net_num )
   {
      case 1: return Ow_Reset_1(); // Perform a Reset on 1-Wire net No 1
      case 2: return Ow_Reset_2(); // Perform a Reset on 1-Wire net No 2
      case 3: return Ow_Reset_3(); // Perform a Reset on 1-Wire net No 3
   }
}
But I still say that doing all three simultaneously is worth a look - awaiting Leon's input on whether it could work for him...




List of 24 messages in thread
TopicAuthorDate
sbit            01/01/70 00:00      
   I do not understand            01/01/70 00:00      
      You mean Dallas 1-Wire?            01/01/70 00:00      
   Re            01/01/70 00:00      
   What's the problem?            01/01/70 00:00      
      I think that...            01/01/70 00:00      
         indirect bit addressing            01/01/70 00:00      
         The same iButton on all 3?            01/01/70 00:00      
         sbit            01/01/70 00:00      
            access all 3 , one at a time            01/01/70 00:00      
   I had the same problem            01/01/70 00:00      
      Lets try again            01/01/70 00:00      
         Need ?            01/01/70 00:00      
         Why?            01/01/70 00:00      
         There is always the switch statement            01/01/70 00:00      
            something like this...            01/01/70 00:00      
         Simultaneous example            01/01/70 00:00      
            Use MASK rather than bit address            01/01/70 00:00      
               Oooops, sorry...            01/01/70 00:00      
      Multiple 1Wire            01/01/70 00:00      
         How to post code, and possible hang-up            01/01/70 00:00      
         simultaneous?            01/01/70 00:00      
            would even be better            01/01/70 00:00      
               If it worked!            01/01/70 00:00      

Back to Subject List