----------------------------------------------------------------------------- Read from a controller -----------------------------------------------------------------------------
| 52 | // Read from a controller |
| 53 | //----------------------------------------------------------------------------- |
| 54 | uint32 Controller::Read |
| 55 | ( |
| 56 | uint8* _buffer, |
| 57 | uint32 _length |
| 58 | ) |
| 59 | { |
| 60 | // Fetch the data from the ring buffer (which is an all or nothing read) |
| 61 | if( Get( _buffer, _length ) ) |
| 62 | { |
| 63 | return _length; |
| 64 | } |
| 65 | |
| 66 | return 0; |
| 67 | } |
| 68 |